about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-12 09:13:47 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-12 09:13:47 +0530
commit0a74387b642bfc6ba0c8de723942eafae440bc4a (patch)
tree109b0be66b72fa83a755169299dbcbdc3e2b8b97 /src/libcore/str
parent2c251fa84694112890d879cd5fe05d18006f0a0c (diff)
parent64ab111b5387e9985df188a970350c9e6c7f1451 (diff)
downloadrust-0a74387b642bfc6ba0c8de723942eafae440bc4a.tar.gz
rust-0a74387b642bfc6ba0c8de723942eafae440bc4a.zip
Rollup merge of #23297 - steveklabnik:examples, r=huonw
 This brings comments in line with https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#using-markdown
Diffstat (limited to 'src/libcore/str')
-rw-r--r--src/libcore/str/mod.rs2
-rw-r--r--src/libcore/str/pattern.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index a5ade2ae2a5..6f72890d96f 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -1183,7 +1183,7 @@ mod traits {
     /// Panics when `begin` and `end` do not point to valid characters
     /// or point beyond the last character of the string.
     ///
-    /// # Example
+    /// # Examples
     ///
     /// ```rust
     /// let s = "Löwe 老虎 Léopard";
diff --git a/src/libcore/str/pattern.rs b/src/libcore/str/pattern.rs
index 1f669c66eb1..9eeb9b869ce 100644
--- a/src/libcore/str/pattern.rs
+++ b/src/libcore/str/pattern.rs
@@ -215,7 +215,7 @@ pub unsafe trait ReverseSearcher<'a>: Searcher<'a> {
 ///   the two ends of a range of values, that is they
 ///   can not "walk past each other".
 ///
-/// # Example
+/// # Examples
 ///
 /// `char::Searcher` is a `DoubleEndedSearcher` because searching for a
 /// `char` only requires looking at one at a time, which behaves the same