File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -3971,6 +3971,16 @@ impl str {
39713971 /// [`to_ascii_uppercase`].
39723972 ///
39733973 /// [`to_ascii_uppercase`]: #method.to_ascii_uppercase
3974+ ///
3975+ /// # Examples
3976+ ///
3977+ /// ```
3978+ /// let mut s = String::from("Grüße, Jürgen ❤");
3979+ ///
3980+ /// s.make_ascii_uppercase();
3981+ ///
3982+ /// assert_eq!("GRüßE, JüRGEN ❤", s);
3983+ /// ```
39743984 #[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
39753985 pub fn make_ascii_uppercase ( & mut self ) {
39763986 let me = unsafe { self . as_bytes_mut ( ) } ;
@@ -3986,6 +3996,16 @@ impl str {
39863996 /// [`to_ascii_lowercase`].
39873997 ///
39883998 /// [`to_ascii_lowercase`]: #method.to_ascii_lowercase
3999+ ///
4000+ /// # Examples
4001+ ///
4002+ /// ```
4003+ /// let mut s = String::from("Grüße, Jürgen ❤");
4004+ ///
4005+ /// s.make_ascii_lowercase();
4006+ ///
4007+ /// assert_eq!("grüße, jürgen ❤", s);
4008+ /// ```
39894009 #[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
39904010 pub fn make_ascii_lowercase ( & mut self ) {
39914011 let me = unsafe { self . as_bytes_mut ( ) } ;
You can’t perform that action at this time.
0 commit comments