summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorprojektir <oprojektir@gmail.com>2017-04-12 00:10:36 -0400
committerprojektir <oprojektir@gmail.com>2017-04-12 00:10:36 -0400
commited7b6c3724be948bc04aaf3ed4311c877bde6dd3 (patch)
tree5cb4de306a2393b57f773ce73e9aab051e88457c /src/libstd
parentad36c2f5528d617db66c244d8bcbfc4b36da0ca0 (diff)
downloadrust-ed7b6c3724be948bc04aaf3ed4311c877bde6dd3.tar.gz
rust-ed7b6c3724be948bc04aaf3ed4311c877bde6dd3.zip
Minor nits in primitive str
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/primitive_docs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs
index 5b2053e929a..8ae987557dd 100644
--- a/src/libstd/primitive_docs.rs
+++ b/src/libstd/primitive_docs.rs
@@ -406,7 +406,7 @@ mod prim_slice { }
 ///
 /// This documentation describes a number of methods and trait implementations
 /// on the `str` type. For technical reasons, there is additional, separate
-/// documentation in [the `std::str` module](str/index.html) as well.
+/// documentation in the [`std::str`](str/index.html) module as well.
 ///
 /// # Examples
 ///
@@ -425,7 +425,7 @@ mod prim_slice { }
 /// # Representation
 ///
 /// A `&str` is made up of two components: a pointer to some bytes, and a
-/// length. You can look at these with the [`.as_ptr`] and [`len`] methods:
+/// length. You can look at these with the [`as_ptr`] and [`len`] methods:
 ///
 /// ```
 /// use std::slice;
@@ -452,11 +452,11 @@ mod prim_slice { }
 /// assert_eq!(s, Ok(story));
 /// ```
 ///
-/// [`.as_ptr`]: #method.as_ptr
+/// [`as_ptr`]: #method.as_ptr
 /// [`len`]: #method.len
 ///
 /// Note: This example shows the internals of `&str`. `unsafe` should not be
-/// used to get a string slice under normal circumstances. Use `.as_slice()`
+/// used to get a string slice under normal circumstances. Use `as_slice`
 /// instead.
 #[stable(feature = "rust1", since = "1.0.0")]
 mod prim_str { }