Skip to content

Commit

Permalink
Use translated variable for test string
Browse files Browse the repository at this point in the history
Test should be educative, added english translation and pronounciation.
  • Loading branch information
pickfire committed Aug 24, 2020
1 parent aa7010d commit a746870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/tests/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ fn test_split_off_past_end() {
#[test]
#[should_panic]
fn test_split_off_mid_char() {
let mut orig = String::from("山");
let _ = orig.split_off(1);
let mut shan = String::from("山");
let _broken_mountain = shan.split_off(1);
}

#[test]
Expand Down

0 comments on commit a746870

Please sign in to comment.