提交 0047b84a 编写于 作者: A Alex Crichton

rollup merge of #18696 : tshakah/patch-1

......@@ -1149,7 +1149,7 @@ enum StringResult {
}
```
Where a `StringResult` is either an `StringOK`, with the result of a computation, or an
`ErrorReason` with a `String` explaining what caused the computation to fail. This kind of
`ErrorReason` with a `String` explaining what caused the computation to fail. These kinds of
`enum`s are actually very useful and are even part of the standard library.
As you can see `enum`s with values are quite a powerful tool for data representation,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册