We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa312a3 commit ed3d672Copy full SHA for ed3d672
src/ch05-03-method-syntax.md
@@ -38,7 +38,7 @@ The `&self` is actually short for `self: &Self`. Within an `impl` block, the
38
type `Self` is an alias for the type that the `impl` block is for. Methods must
39
have a parameter named `self` of type `Self` for their first parameter, so Rust
40
lets you abbreviate this with only the name `self` in the first parameter spot.
41
-Note that we still need to use the `&` in front of the `self` shorthand to
+Note that we still need to use the `&` behind the `self` shorthand to
42
indicate that this method borrows the `Self` instance, just as we did in
43
`rectangle: &Rectangle`. Methods can take ownership of `self`, borrow `self`
44
immutably, as we’ve done here, or borrow `self` mutably, just as they can any
0 commit comments