Skip to content

Commit ad25b87

Browse files
authored
Merge pull request #977 from antrik/patch-1
Comment typo
2 parents cd7f2fe + 3f6553f commit ad25b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/items/generics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ type N = u32;
166166
struct Foo<const N: usize>;
167167
// The following is an error, because `N` is interpreted as the type alias `N`.
168168
fn foo<const N: usize>() -> Foo<N> { todo!() } // ERROR
169-
// Can be fixed by wrapping in braces to force it to be interprted as the `N`
169+
// Can be fixed by wrapping in braces to force it to be interpreted as the `N`
170170
// const parameter:
171171
fn bar<const N: usize>() -> Foo<{ N }> { todo!() } // ok
172172
```

0 commit comments

Comments
 (0)