Skip to content

Commit c910518

Browse files
authored
Rollup merge of #75882 - pickfire:patch-6, r=jyn514
Use translated variable for test string Test should be educative, added english translation and pronounciation.
2 parents 034af08 + a746870 commit c910518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/tests/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ fn test_split_off_past_end() {
272272
#[test]
273273
#[should_panic]
274274
fn test_split_off_mid_char() {
275-
let mut orig = String::from("山");
276-
let _ = orig.split_off(1);
275+
let mut shan = String::from("山");
276+
let _broken_mountain = shan.split_off(1);
277277
}
278278

279279
#[test]

0 commit comments

Comments
 (0)