From dfe697106478a52bddc000477e8cd0621bcc1a20 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 16 Apr 2018 10:07:17 +0200 Subject: [PATCH] Fix a typo --- text/2342-const-control-flow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/2342-const-control-flow.md b/text/2342-const-control-flow.md index 0eaff0480af..64ce1ea178c 100644 --- a/text/2342-const-control-flow.md +++ b/text/2342-const-control-flow.md @@ -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