Rollup merge of #25611 - parir:patch-1, r=steveklabnik
r? @steveklabnik
This commit is contained in:
commit
dd1c68e6a1
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user