Merge pull request #517 from BobH-Official/patch-3

删除代码中的一段重复注释(英文)
pull/522/head
Sunface 3 years ago committed by GitHub
commit 3652d526c3
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