Skip to content

Commit aa9efa1

Browse files
committed
update manual to reflect &'lifetime syntax
1 parent 760942d commit aa9efa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/rust.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3162,7 +3162,7 @@ Borrowed pointers (`&`)
31623162
Borrowed pointers arise by (automatic) conversion from owning pointers, managed pointers,
31633163
or by applying the borrowing operator `&` to some other value,
31643164
including [lvalues, rvalues or temporaries](#lvalues-rvalues-and-temporaries).
3165-
Borrowed pointers are written `&content`, or in some cases `&f/content` for some lifetime-variable `f`,
3165+
Borrowed pointers are written `&content`, or in some cases `&'f content` for some lifetime-variable `f`,
31663166
for example `&int` means a borrowed pointer to an integer.
31673167
Copying a borrowed pointer is a "shallow" operation:
31683168
it involves only copying the pointer itself.

0 commit comments

Comments
 (0)