Merge pull request #1 from kingfree/master

修正 `no_std` 翻译错误
This commit is contained in:
baizhenxuan 2020-05-28 11:16:44 +08:00 committed by GitHub
commit 66191cc147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
## 裸机环境
在裸机环境中,系统在运行你的代码之前,没有未加载任何代码。因为没有操作系统的支持,我们将无法使用标准库。
在裸机环境中,系统在运行你的代码之前未加载任何代码。因为没有操作系统的支持,我们将无法使用标准库。
相反程序及其使用的crate只能直接使用硬件(裸机)来运行。为了防止Rust加载标准库必须使用`no_std`。可通过[核心库](https://doc.rust-lang.org/core/)获得标准库中与平台无关的部分。核心库还排除了嵌入式环境中并不总是需要的东西。其中之一是用于动态内存分配的内存分配器。如果您需要此功能或任何其他功能通常会有第三方crate实现。
@ -42,4 +42,4 @@
[alloc-cortex-m]: https://github.com/rust-embedded/alloc-cortex-m
## 其他资料
* [RFC-1184](https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md)
* [RFC-1184](https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md)