Skip to content

Commit 936678a

Browse files
committed
Link to section on references when we use the term prior to defining it
1 parent 3557e69 commit 936678a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doc/book/primitive-types.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,13 @@ documentation][slice].
192192
# `str`
193193

194194
Rust’s `str` type is the most primitive string type. As an [unsized type][dst],
195-
it’s not very useful by itself, but becomes useful when placed behind a reference,
196-
like [`&str`][strings]. As such, we’ll just leave it at that.
195+
it’s not very useful by itself, but becomes useful when placed behind a
196+
reference, like `&str`. We'll elaborate further when we cover
197+
[Strings][strings] and [references][].
197198

198199
[dst]: unsized-types.html
199200
[strings]: strings.html
201+
[references]: references-and-borrowing.html
200202

201203
You can find more documentation for `str` [in the standard library
202204
documentation][str].

0 commit comments

Comments
 (0)