删除代码中的一段重复注释(英文)

pull/517/head
BobH 3 years ago committed by GitHub
parent 3222aa45cd
commit 6757bb9114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -195,7 +195,7 @@ fn main() {
let s1 = String::from("hello,");
let s2 = String::from("world!");
// 在下句中s1的所有权被转移走了因此后面不能再使用s1
let s3 = s1 + &s2; // note s1 has been moved here and can no longer be used
let s3 = s1 + &s2;
assert_eq!(s3,"hello,world!");
// 下面的语句如果去掉注释,就会报错
// println!("{}",s1);

Loading…
Cancel
Save