-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
深入生命周期章节中再借用段落建议 #1020
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
对于再借用而言,rr 再借用时不会破坏借用规则,但是你不能在它的生命周期内 再使用 原来的借用 r,来看看对上段代码的分析:
我感觉这里不应该描述为不能再使用,因为只有修改会编译错误,而打印和读值并不会引起编译错误。
还一点就是能否在
引用与借用
章节提一下再借用,在第二遍读的时候总感觉 同一时刻,你只能拥有要么一个可变引用, 要么任意多个不可变引用 这个借用规则不是很严谨The text was updated successfully, but these errors were encountered: