Skip to content

Commit dd1c68e

Browse files
committed
Rollup merge of rust-lang#25611 - parir:patch-1, r=steveklabnik
r? @steveklabnik
2 parents 7f74212 + c9c474c commit dd1c68e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcollections/str.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,8 +1841,10 @@ impl str {
18411841
///
18421842
/// # Examples
18431843
///
1844+
/// ```
18441845
/// let s = "HELLO";
18451846
/// assert_eq!(s.to_lowercase(), "hello");
1847+
/// ```
18461848
#[unstable(feature = "collections")]
18471849
pub fn to_lowercase(&self) -> String {
18481850
let mut s = String::with_capacity(self.len());
@@ -1854,8 +1856,10 @@ impl str {
18541856
///
18551857
/// # Examples
18561858
///
1859+
/// ```
18571860
/// let s = "hello";
18581861
/// assert_eq!(s.to_uppercase(), "HELLO");
1862+
/// ```
18591863
#[unstable(feature = "collections")]
18601864
pub fn to_uppercase(&self) -> String {
18611865
let mut s = String::with_capacity(self.len());

0 commit comments

Comments
 (0)