We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd7f2fe commit 3f6553fCopy full SHA for 3f6553f
src/items/generics.md
@@ -166,7 +166,7 @@ type N = u32;
166
struct Foo<const N: usize>;
167
// The following is an error, because `N` is interpreted as the type alias `N`.
168
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`
+// Can be fixed by wrapping in braces to force it to be interpreted as the `N`
170
// const parameter:
171
fn bar<const N: usize>() -> Foo<{ N }> { todo!() } // ok
172
```
0 commit comments