Fixed typo.

这里应该是手误,`u32` 不能和 `i32` 进行相加,必须是同类型。
pull/594/head
Rustln 3 years ago committed by GitHub
parent 0fefb65cf1
commit 3181ddfe81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,7 +110,7 @@ type Meters = u32
**类型别名并不是一个独立的全新的类型,而是某一个类型的别名**,因此编译器依然会把 `Meters``u32` 来使用:
```rust
type Meters = i32;
type Meters = u32;
let x: u32 = 5;
let y: Meters = 5;

Loading…
Cancel
Save