From 91680347a7ef48ddffd9ff06eedb54a550891cf1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 25 Jun 2018 17:33:49 -0400 Subject: [PATCH] make the `while let` loop terminate --- .../src/language-features/irrefutable-let-patterns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/unstable-book/src/language-features/irrefutable-let-patterns.md b/src/doc/unstable-book/src/language-features/irrefutable-let-patterns.md index 716deaba01e10..46b843778e810 100644 --- a/src/doc/unstable-book/src/language-features/irrefutable-let-patterns.md +++ b/src/doc/unstable-book/src/language-features/irrefutable-let-patterns.md @@ -23,6 +23,6 @@ fn main() { // These two examples used to be errors, but now they // trigger a lint (that is allowed): if let _ = 5 {} - while let _ = 5 {} + while let _ = 5 { break; } } ```