We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f74212 + c9c474c commit dd1c68eCopy full SHA for dd1c68e
src/libcollections/str.rs
@@ -1841,8 +1841,10 @@ impl str {
1841
///
1842
/// # Examples
1843
1844
+ /// ```
1845
/// let s = "HELLO";
1846
/// assert_eq!(s.to_lowercase(), "hello");
1847
1848
#[unstable(feature = "collections")]
1849
pub fn to_lowercase(&self) -> String {
1850
let mut s = String::with_capacity(self.len());
@@ -1854,8 +1856,10 @@ impl str {
1854
1856
1855
1857
1858
1859
1860
/// let s = "hello";
1861
/// assert_eq!(s.to_uppercase(), "HELLO");
1862
1863
1864
pub fn to_uppercase(&self) -> String {
1865
0 commit comments