diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-01-07 14:05:00 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-01-09 14:03:58 -0500 |
| commit | 6ba952020fbc91bad64be1ea0650bfba52e6aab4 (patch) | |
| tree | 33ee5a5555d7b641f5c8c5243fbda2fa5fca866d /src/doc/book/generics.md | |
| parent | d70ab2bdf16c22b9f3ff0230089b44855e3f1593 (diff) | |
Remove many instances of 'just'
Doing so is considered weaker writing. Thanks @Charlotteis! Fixes #28810
Diffstat (limited to 'src/doc/book/generics.md')
| -rw-r--r-- | src/doc/book/generics.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/generics.md b/src/doc/book/generics.md index 347c1f5757c..9ab601419cd 100644 --- a/src/doc/book/generics.md +++ b/src/doc/book/generics.md @@ -37,7 +37,7 @@ let x: Option<f64> = Some(5); // found `core::option::Option<_>` (expected f64 but found integral variable) ``` -That doesn’t mean we can’t make `Option<T>`s that hold an `f64`! They just have +That doesn’t mean we can’t make `Option<T>`s that hold an `f64`! They have to match up: ```rust @@ -118,7 +118,7 @@ let float_origin = Point { x: 0.0, y: 0.0 }; Similar to functions, the `<T>` is where we declare the generic parameters, and we then use `x: T` in the type declaration, too. -When you want to add an implementation for the generic `struct`, you just +When you want to add an implementation for the generic `struct`, you declare the type parameter after the `impl`: ```rust |
