Skip to content

Commit eb3fc89

Browse files
enum.md注释翻译 (#154)
Co-authored-by: YangQi <[email protected]>
1 parent 8f032bf commit eb3fc89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/custom_types/enum.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ enum VeryVerboseEnumOfThingsToDoWithNumbers {
6161
Subtract,
6262
}
6363
64-
// Creates a type alias
64+
// 创建一个类型别名
6565
type Operations = VeryVerboseEnumOfThingsToDoWithNumbers;
6666
6767
fn main() {
68-
// We can refer to each variant via its alias, not its long and inconvenient
69-
// name.
68+
// 我们可以通过别名引用每个枚举变量,避免使用又长又不方便的枚举名字
7069
let x = Operations::Add;
7170
}
7271
```

0 commit comments

Comments
 (0)