This repository has been archived by the owner on May 5, 2019. It is now read-only.
forked from rust-lang/edition-guide
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
translate 3.6 & 3.7 & 3.8 & 3.9 & 3.10 & 3.11
- Loading branch information
1 parent
534a54d
commit 02c835a
Showing
24 changed files
with
272 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Cargo and crates.io | ||
# Cargo 和 crates.io | ||
|
||
[check]: improved-error-messages.md | ||
[check]: cargo-check-for-faster-checking.md | ||
|
||
In this chapter of the guide, we discuss a few improvements to `cargo` and crates.io. | ||
A notable addition here is the new [`cargo check`][check] command. | ||
在本章中,我们将讨论关于 `cargo` 和 crates.io 的改进。更多的关注在 [`cargo check`][check]。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# 128 bit integers | ||
# 128位整型 | ||
|
||
![Minimum Rust version: 1.26](https://img.shields.io/badge/Minimum%20Rust%20Version-1.26-brightgreen.svg) | ||
|
||
A very simple feature: Rust now has 128 bit integers! | ||
这是一个简单的特性: Rust 现在支持128位的整型了! | ||
|
||
```rust | ||
let x: i128 = 0; | ||
let y: u128 = 0; | ||
``` | ||
|
||
These are twice the size of `u64`, and so can hold more values. More specifically, | ||
这将是 u64的两倍大小,并且可以存放更多的值,十分方便。 | ||
|
||
* `u128`: `0` - `340,282,366,920,938,463,463,374,607,431,768,211,455` | ||
* `i128`: `−170,141,183,460,469,231,731,687,303,715,884,105,728` - `170,141,183,460,469,231,731,687,303,715,884,105,727` | ||
|
||
Whew! | ||
哈! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Data types | ||
# 数据类型 | ||
|
||
[fis]: field-init-shorthand.md | ||
|
||
In this chapter of the guide, we discuss a few improvements to data types. | ||
One of these are [field-init-shorthand][fis]. | ||
在本章节中,我们讨论数据类型的改进,值得关注的是 [字段初始化简写][fis]。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.