Sneak in a little note about dereferencing

Fixes #648
This commit is contained in:
Carol (Nichols || Goulding)
2017-11-07 17:52:28 -05:00
parent bb94353136
commit 751a20903a
2 changed files with 10 additions and 0 deletions

View File

@@ -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, `*`. Well see some uses of the
> dereference operator in Chapter 8 and discuss details of dereferencing in
> Chapter 15.
Lets take a closer look at the function call here:
```

View File

@@ -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, `*`. Well see some uses of the
> dereference operator in Chapter 8 and discuss details of dereferencing in
> Chapter 15.
Lets take a closer look at the function call here:
```rust