update manual to reflect &'lifetime syntax
This commit is contained in:
parent
760942d7d2
commit
aa9efa1f7a
1 changed files with 1 additions and 1 deletions
|
@ -3162,7 +3162,7 @@ Borrowed pointers (`&`)
|
||||||
Borrowed pointers arise by (automatic) conversion from owning pointers, managed pointers,
|
Borrowed pointers arise by (automatic) conversion from owning pointers, managed pointers,
|
||||||
or by applying the borrowing operator `&` to some other value,
|
or by applying the borrowing operator `&` to some other value,
|
||||||
including [lvalues, rvalues or temporaries](#lvalues-rvalues-and-temporaries).
|
including [lvalues, rvalues or temporaries](#lvalues-rvalues-and-temporaries).
|
||||||
Borrowed pointers are written `&content`, or in some cases `&f/content` for some lifetime-variable `f`,
|
Borrowed pointers are written `&content`, or in some cases `&'f content` for some lifetime-variable `f`,
|
||||||
for example `&int` means a borrowed pointer to an integer.
|
for example `&int` means a borrowed pointer to an integer.
|
||||||
Copying a borrowed pointer is a "shallow" operation:
|
Copying a borrowed pointer is a "shallow" operation:
|
||||||
it involves only copying the pointer itself.
|
it involves only copying the pointer itself.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue