We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd7f2fe + 3f6553f commit ad25b87Copy full SHA for ad25b87
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