From cdc5b9f086d58b2d8456e10f4ba120598d9dec3d Mon Sep 17 00:00:00 2001 From: mitohato Date: Sun, 8 Oct 2017 02:31:22 +0900 Subject: [PATCH] Fix code in range of README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4ff543..0ff8626 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ val pair = foo to bar val char = 'K' // bad -if (char >= 'A' && 'c' <= 'Z') print("Hit!") +if (char >= 'A' && char <= 'Z') print("Hit!") // good if (char in 'A'..'Z') print("Hit!")