comment没有翻译

添加翻译
pull/656/head
kkoang 2 years ago committed by GitHub
parent f873a162ef
commit 91ae3de189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ fn main() {
}
// ANCHOR: here
fn calculate_length(s: &String) -> usize { // s is a reference to a String
fn calculate_length(s: &String) -> usize { // s是String的引用
s.len()
} // 这里s 离开了作用域。但因为它并不拥有引用值的所有权,
// 所以什么也不会发生

Loading…
Cancel
Save