提交 83d01cc5 编写于 作者: J Jakub Vrána

Fix a typo in guide

上级 ea6f65c5
......@@ -4789,7 +4789,7 @@ of `Option`, we need to provide a concrete type in place of the type
parameter. For example, if we wanted something like our `OptionalInt`, we would
need to instantiate an `Option<i32>`. Inside the declaration of our enum,
wherever we see a `T`, we replace it with the type specified (or inferred by the
the compiler).
compiler).
```{rust}
let x: Option<i32> = Some(5);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册