Skip to content

Commit fd0b6b4

Browse files
authored
typo
1 parent f1b060c commit fd0b6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ let _: S<1> = f::<(((_)))>(); // Inferred const.
169169
> In a generic argument list, an [inferred const] is parsed as an [inferred type][InferredType] but then semantically treated as a separate kind of [const generic argument].
170170
171171
r[items.generics.const.inferred]
172-
Where a const argument is expected, an `_` (optionally surrounding by any number of matching parentheses), called the *inferred const* ([path rules][paths.expr.complex-const-params], [array expression rules][expr.array.length-restriction]), can be used instead. This asks the compiler to infer the const argument if possible based on surrounding information.
172+
Where a const argument is expected, an `_` (optionally surrounded by any number of matching parentheses), called the *inferred const* ([path rules][paths.expr.complex-const-params], [array expression rules][expr.array.length-restriction]), can be used instead. This asks the compiler to infer the const argument if possible based on surrounding information.
173173

174174
```rust
175175
fn make_buf<const N: usize>() -> [u8; N] {

0 commit comments

Comments
 (0)