-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
Translation Chapter 4 #171
Conversation
@colachg Please review, thanks |
since it's about translation, I think commenting in Chinese is OK? |
当然可以 |
你可以check一下,如果没有问题,我们就需要进行合并。 |
|
||
然而`static QEMU_OUTPUT`不允许调用具有`&mut self`的函数。 | ||
为此,我们需要`static mut`,但是调用改变`static mut`状态的函数是不安全的。 | ||
这个是Rust编译器对此的推理,它无法再阻止核心/线程同时改变数据(它是全局的,所以每个人都可以从任何地方引用它,检查程序借用在这里帮不上忙)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原文用的是并发地改变数据而非同时,应该还是有区别的。另外borrow checker 似乎直译成借用检查器比较常见?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
如果你有时间可以尝试翻译第五章,我继续第六章。 |
@Jzow Please let us know when this is ready for merge |
This PR can be merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Description
Related Issue:
Pre-commit steps
./contributor_setup.sh
followed by./devtool ready_for_publish
Ruby
withBundler
andNPM
installed locally../devtool ready_for_publish_no_rust
can be used instead (faster).link #166