Skip to content

Commit

Permalink
Merge pull request #1333 from toslunar/fix-shiftjis-bytes
Browse files Browse the repository at this point in the history
Fix bytes of youkoso in shiftjis
  • Loading branch information
marioidival authored Apr 16, 2020
2 parents 319d706 + 8019a29 commit f7c2fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/str.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ fn main() {
like with normal raw strings"#;
// Byte strings don't have to be UTF-8
let shift_jis = b"\x82\xe6\x82\xa8\x82\xb1\x82"; // "ようこそ" in SHIFT-JIS
let shift_jis = b"\x82\xe6\x82\xa8\x82\xb1\x82\xbb"; // "ようこそ" in SHIFT-JIS
// But then they can't always be converted to `str`
match str::from_utf8(shift_jis) {
Expand Down

0 comments on commit f7c2fc6

Please sign in to comment.