mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 03:08:53 -04:00
@@ -596,6 +596,11 @@ without taking ownership of it. Figure 4-5 shows a diagram.
|
||||
|
||||
Figure 4-5: `&String s` pointing at `String s1`
|
||||
|
||||
> Note: The opposite of referencing by using `&` is *dereferencing*, which is
|
||||
> accomplished with the dereference operator, `*`. We’ll see some uses of the
|
||||
> dereference operator in Chapter 8 and discuss details of dereferencing in
|
||||
> Chapter 15.
|
||||
|
||||
Let’s take a closer look at the function call here:
|
||||
|
||||
```
|
||||
|
||||
@@ -37,6 +37,11 @@ without taking ownership of it. Figure 4-5 shows a diagram.
|
||||
|
||||
<span class="caption">Figure 4-5: `&String s` pointing at `String s1`</span>
|
||||
|
||||
> Note: The opposite of referencing by using `&` is *dereferencing*, which is
|
||||
> accomplished with the dereference operator, `*`. We’ll see some uses of the
|
||||
> dereference operator in Chapter 8 and discuss details of dereferencing in
|
||||
> Chapter 15.
|
||||
|
||||
Let’s take a closer look at the function call here:
|
||||
|
||||
```rust
|
||||
|
||||
Reference in New Issue
Block a user