Skip to content

Commit

Permalink
Rollup merge of #75882 - pickfire:patch-6, r=jyn514
Browse files Browse the repository at this point in the history
Use translated variable for test string

Test should be educative, added english translation and pronounciation.
  • Loading branch information
Dylan-DPC authored Sep 15, 2020
2 parents 034af08 + a746870 commit c910518
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 @@ -272,8 +272,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 c910518

Please sign in to comment.