We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34d14e7 + bb6c27e commit 97d5be9Copy full SHA for 97d5be9
src/libstd/sys/common/wtf8.rs
@@ -408,7 +408,7 @@ impl fmt::Debug for Wtf8 {
408
&self.bytes[pos .. surrogate_pos]
409
)},
410
)?;
411
- write!(formatter, "\\u{{{:X}}}", surrogate)?;
+ write!(formatter, "\\u{{{:x}}}", surrogate)?;
412
pos = surrogate_pos + 3;
413
}
414
@@ -1066,7 +1066,7 @@ mod tests {
1066
fn wtf8buf_show() {
1067
let mut string = Wtf8Buf::from_str("a\té \u{7f}💩\r");
1068
string.push(CodePoint::from_u32(0xD800).unwrap());
1069
- assert_eq!(format!("{:?}", string), "\"a\\té \\u{7f}\u{1f4a9}\\r\\u{D800}\"");
+ assert_eq!(format!("{:?}", string), "\"a\\té \\u{7f}\u{1f4a9}\\r\\u{d800}\"");
1070
1071
1072
#[test]
0 commit comments