File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -467,6 +467,12 @@ impl char {
467
467
/// Returns an iterator which yields the characters corresponding to the
468
468
/// lowercase equivalent of the character. If no conversion is possible then
469
469
/// an iterator with just the input character is returned.
470
+ ///
471
+ /// # Examples
472
+ ///
473
+ /// ```
474
+ /// assert_eq!(Some('c'), 'C'.to_lowercase().next());
475
+ /// ```
470
476
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
471
477
#[ inline]
472
478
pub fn to_lowercase ( self ) -> ToLowercase {
@@ -515,6 +521,12 @@ impl char {
515
521
/// [`SpecialCasing.txt`]: ftp://ftp.unicode.org/Public/UNIDATA/SpecialCasing.txt
516
522
///
517
523
/// [2]: http://www.unicode.org/versions/Unicode7.0.0/ch03.pdf#G33992
524
+ ///
525
+ /// # Examples
526
+ ///
527
+ /// ```
528
+ /// assert_eq!(Some('C'), 'c'.to_uppercase().next());
529
+ /// ```
518
530
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
519
531
#[ inline]
520
532
pub fn to_uppercase ( self ) -> ToUppercase {
You can’t perform that action at this time.
0 commit comments