Skip to content

Commit be0586e

Browse files
authored
Merge pull request #2403 from oli-obk/patch-1
Fix a typo
2 parents 1c353bc + dfe6971 commit be0586e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/2342-const-control-flow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const fn foo(x: u32, y: u32) -> u32 {
132132
y - x
133133
}
134134
}
135-
const AB: u32 = foo(x, y);
135+
const AB: u32 = foo(X, Y);
136136
```
137137

138138
Since the const fn's `x` and `y` arguments are unknown, they cannot be const

0 commit comments

Comments
 (0)