mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
Rollup merge of #75882 - pickfire:patch-6, r=jyn514
Use translated variable for test string Test should be educative, added english translation and pronounciation.
This commit is contained in:
commit
c9105185de
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user