Merge pull request #20672 from vrana/patch-3
Fix a typo in guide Reviewed-by: steveklabnik
This commit is contained in:
commit
7377c0b1a9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
parameter. For example, if we wanted something like our `OptionalInt`, we would
|
||||||
need to instantiate an `Option<i32>`. Inside the declaration of our enum,
|
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
|
wherever we see a `T`, we replace it with the type specified (or inferred by the
|
||||||
the compiler).
|
compiler).
|
||||||
|
|
||||||
```{rust}
|
```{rust}
|
||||||
let x: Option<i32> = Some(5);
|
let x: Option<i32> = Some(5);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue