1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-11-26 01:30:22 +02:00

zh-Hans: Translation for src/why-rust.md (#726)

* zh-Hans: Translation for src/src/why-rust.md

* Apply suggestions from code review

Co-authored-by: suetfei <89482184+suetfei@users.noreply.github.com>

* Fix unescaped quotes and add spaces between chars

---------

Co-authored-by: suetfei <89482184+suetfei@users.noreply.github.com>
This commit is contained in:
Yulin Shen 2023-05-31 09:44:46 +08:00 committed by GitHub
parent 98e434d360
commit 2d6cfe3641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ msgstr "简短示例"
#: src/SUMMARY.md:22
msgid "Why Rust?"
msgstr ""
msgstr "为什么选择 Rust?"
#: src/SUMMARY.md:23
msgid "Compile Time Guarantees"
@ -2183,11 +2183,11 @@ msgstr ""
#: src/why-rust.md:1
msgid "# Why Rust?"
msgstr ""
msgstr "# 为什么选择 Rust?"
#: src/why-rust.md:3
msgid "Some unique selling points of Rust:"
msgstr ""
msgstr "Rust 有一些独特的卖点:"
#: src/why-rust.md:5
msgid ""
@ -2195,6 +2195,9 @@ msgid ""
"* Lack of undefined runtime behavior.\n"
"* Modern language features."
msgstr ""
"* 编译期内存安全。\n"
"* 没有运行时未定义行为。\n"
"* 现代的编程语言特性。"
#: src/why-rust.md:11
msgid ""
@ -2202,6 +2205,7 @@ msgid ""
"Depending\n"
"on the answer you can highlight different features of Rust:"
msgstr ""
"应该问问学生们都使用过哪些语言。根据答案侧重讲解 Rust 的不同特性:"
#: src/why-rust.md:14
msgid ""
@ -2221,6 +2225,12 @@ msgid ""
"collector)\n"
" as well as access to low-level hardware (should you need it)"
msgstr ""
"* 使用过 C 或 C++:Rust 利用\"借用检查\"消除了一类 _运行时错误_ 。你可以达到堪比 C 和 C++\n"
"的性能,而没有内存不安全的问题。并且你还可以得到些现代的语言构造,比如模式匹配和内置依赖管理。\n"
"\n"
"* 使用过 Java, Go, Python, JavaScript...:你可以得到和这些语言相同的内存安全特性,并拥有"
"类似的使用高级语言的感受。同时你可以得到类似 C 和 C++ 的高速且可预测的执行性能(无垃圾回收机制)"
",以及在需要时对底层硬件的访问。"
#: src/why-rust/compile-time.md:1
msgid "# Compile Time Guarantees"