about summary refs log tree commit diff
diff options
context:
space:
mode:
authorparir <peer.aramillo.irizar@gmail.com>2015-05-19 19:19:42 +0200
committerparir <peer.aramillo.irizar@gmail.com>2015-05-19 19:19:42 +0200
commitc9c474cb862a02eb15c15882fe331c6f9bdb7524 (patch)
tree5cb12f72efc3481d93551159b428cf6a9b38f497
parent9c47ebb00abecf2b2fe7fa0b0ea059c8327b40f2 (diff)
downloadrust-c9c474cb862a02eb15c15882fe331c6f9bdb7524.tar.gz
rust-c9c474cb862a02eb15c15882fe331c6f9bdb7524.zip
doc: add missing fences
-rw-r--r--src/libcollections/str.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index 198627ad2fc..a3ffdedb8c1 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -1841,8 +1841,10 @@ impl str {
     ///
     /// # Examples
     ///
+    /// ```
     /// let s = "HELLO";
     /// assert_eq!(s.to_lowercase(), "hello");
+    /// ```
     #[unstable(feature = "collections")]
     pub fn to_lowercase(&self) -> String {
         let mut s = String::with_capacity(self.len());
@@ -1854,8 +1856,10 @@ impl str {
     ///
     /// # Examples
     ///
+    /// ```
     /// let s = "hello";
     /// assert_eq!(s.to_uppercase(), "HELLO");
+    /// ```
     #[unstable(feature = "collections")]
     pub fn to_uppercase(&self) -> String {
         let mut s = String::with_capacity(self.len());