mirror of https://github.com/rust-lang/rfcs.git
Fix a typo
This commit is contained in:
parent
1c353bc4b3
commit
dfe6971064
|
@ -132,7 +132,7 @@ const fn foo(x: u32, y: u32) -> u32 {
|
|||
y - x
|
||||
}
|
||||
}
|
||||
const AB: u32 = foo(x, y);
|
||||
const AB: u32 = foo(X, Y);
|
||||
```
|
||||
|
||||
Since the const fn's `x` and `y` arguments are unknown, they cannot be const
|
||||
|
|
Loading…
Reference in New Issue