Skip to content

Commit 00d5651

Browse files
committed
Fix a couple of typos and clarify what bounds are global
1 parent 2e33885 commit 00d5651

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/items/generics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
Functions, type aliases, structs, enumerations, unions, traits and
2424
implementations may be *parameterized* by types and lifetimes. These parameters
2525
are listed in angle <span class="parenthetical">brackets (`<...>`)</span>,
26-
usually immediattely after and before its definition the name of the item. For
26+
usually immediately after and before its definition the name of the item. For
2727
implementations, which don't have a name, they come directly after `impl`.
2828
Lifetime parameters must be declared before type parameters. Some examples of
2929
items with type and lifetime parameters:
@@ -36,7 +36,7 @@ struct Ref<'a, T> where T: 'a { r: &'a T }
3636

3737
[References], [raw pointers], [arrays], [slices][arrays], [tuples] and
3838
[function pointers] have lifetime or type parameters as well, but are not
39-
refered to with path syntax.
39+
referred to with path syntax.
4040

4141
## Where clauses
4242

@@ -61,8 +61,8 @@ refered to with path syntax.
6161
parameters as well as a way to specify bounds on types that aren't type
6262
parameters.
6363

64-
Bounds that don't use the item's parameters are checked when the item is
65-
defined. It is an error for such a bound to be false.
64+
Bounds that don't use the item's parameters or higher-ranked lifetimes are
65+
checked when the item is defined. It is an error for such a bound to be false.
6666

6767
[`Copy`], [`Clone`] and [`Sized`] bounds are also checked for certain generic
6868
types when defining the item. It is an error to have `Copy` or `Clone`as a

0 commit comments

Comments
 (0)