From a7468705cbf0fb551b8b1d8b420123262f7d92b2 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Mon, 24 Aug 2020 22:47:15 +0800 Subject: [PATCH] Use translated variable for test string Test should be educative, added english translation and pronounciation. --- library/alloc/tests/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/tests/string.rs b/library/alloc/tests/string.rs index d38655af78cb7..761561d9aaa4e 100644 --- a/library/alloc/tests/string.rs +++ b/library/alloc/tests/string.rs @@ -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]