From 936678adb10b8dee7a9f83d5fc7526c036daddd3 Mon Sep 17 00:00:00 2001 From: "Michael F. Lamb" Date: Wed, 6 Jan 2016 16:04:01 -0800 Subject: [PATCH] Link to section on references when we use the term prior to defining it --- src/doc/book/primitive-types.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/doc/book/primitive-types.md b/src/doc/book/primitive-types.md index 43b7e67e038..ccfa94ad8bb 100644 --- a/src/doc/book/primitive-types.md +++ b/src/doc/book/primitive-types.md @@ -192,11 +192,13 @@ documentation][slice]. # `str` Rust’s `str` type is the most primitive string type. As an [unsized type][dst], -it’s not very useful by itself, but becomes useful when placed behind a reference, -like [`&str`][strings]. As such, we’ll just leave it at that. +it’s not very useful by itself, but becomes useful when placed behind a +reference, like `&str`. We'll elaborate further when we cover +[Strings][strings] and [references][]. [dst]: unsized-types.html [strings]: strings.html +[references]: references-and-borrowing.html You can find more documentation for `str` [in the standard library documentation][str]. -- 2.44.0