diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-05-19 18:38:54 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-05-19 18:38:54 -0400 |
| commit | dd1c68e6a1dec08e9ea954228f3efb7d20b196fb (patch) | |
| tree | 2b2b55902d4077b58df3556ab0e782a3a18ef781 | |
| parent | 7f742129068f44fbf3cf1cab2f2d1d28e54ac845 (diff) | |
| parent | c9c474cb862a02eb15c15882fe331c6f9bdb7524 (diff) | |
| download | rust-dd1c68e6a1dec08e9ea954228f3efb7d20b196fb.tar.gz rust-dd1c68e6a1dec08e9ea954228f3efb7d20b196fb.zip | |
Rollup merge of #25611 - parir:patch-1, r=steveklabnik
r? @steveklabnik
| -rw-r--r-- | src/libcollections/str.rs | 4 |
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()); |
