Skip to content

Commit f7c2fc6

Browse files
authored
Merge pull request #1333 from toslunar/fix-shiftjis-bytes
Fix bytes of youkoso in shiftjis
2 parents 319d706 + 8019a29 commit f7c2fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std/str.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ fn main() {
145145
like with normal raw strings"#;
146146
147147
// Byte strings don't have to be UTF-8
148-
let shift_jis = b"\x82\xe6\x82\xa8\x82\xb1\x82"; // "ようこそ" in SHIFT-JIS
148+
let shift_jis = b"\x82\xe6\x82\xa8\x82\xb1\x82\xbb"; // "ようこそ" in SHIFT-JIS
149149
150150
// But then they can't always be converted to `str`
151151
match str::from_utf8(shift_jis) {

0 commit comments

Comments
 (0)