Skip to content

Commit cd3704e

Browse files
committed
reviews
1 parent 67a73e2 commit cd3704e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/generics.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
parameters are listed in angle <span class="parenthetical">brackets (`<...>`)</span>,
2323
usually immediately after the name of the item and before its definition. For
2424
implementations, which don't have a name, they come directly after `impl`.
25-
The order of generic parameters is restricted to lifetime parameters and then type/const parameters intermixed.
25+
The order of generic parameters is restricted to lifetime parameters and then type and const parameters intermixed.
2626

2727
Some examples of items with type, const, and lifetime parameters:
2828

@@ -31,7 +31,7 @@ fn foo<'a, T>() {}
3131
trait A<U> {}
3232
struct Ref<'a, T> where T: 'a { r: &'a T }
3333
struct InnerArray<T, const N: usize>([T; N]);
34-
struct Uwu<const N: bool, U>(U);
34+
struct EitherOrderWorks<const N: bool, U>(U);
3535
```
3636

3737
Generic parameters are in scope within the item definition where they are

0 commit comments

Comments
 (0)