Fix a typo

This commit is contained in:
Oliver Schneider 2018-04-16 10:07:17 +02:00 committed by GitHub
parent 1c353bc4b3
commit dfe6971064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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