File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -457,26 +457,26 @@ impl char {
457
457
///
458
458
/// # Examples
459
459
///
460
- /// In both of these examples, 'ß ' takes one `u16` to encode.
460
+ /// In both of these examples, '𝕊 ' takes two `u16`s to encode.
461
461
///
462
462
/// ```
463
463
/// #![feature(unicode)]
464
464
///
465
- /// let mut b = [0; 1 ];
465
+ /// let mut b = [0; 2 ];
466
466
///
467
- /// let result = 'ß '.encode_utf16(&mut b);
467
+ /// let result = '𝕊 '.encode_utf16(&mut b);
468
468
///
469
- /// assert_eq!(result, Some(1 ));
469
+ /// assert_eq!(result, Some(2 ));
470
470
/// ```
471
471
///
472
472
/// A buffer that's too small:
473
473
///
474
474
/// ```
475
475
/// #![feature(unicode)]
476
476
///
477
- /// let mut b = [0; 0 ];
477
+ /// let mut b = [0; 1 ];
478
478
///
479
- /// let result = 'ß '.encode_utf16(&mut b);
479
+ /// let result = '𝕊 '.encode_utf16(&mut b);
480
480
///
481
481
/// assert_eq!(result, None);
482
482
/// ```
You can’t perform that action at this time.
0 commit comments