From 36a26875ef6344fb1bb59ad64d8eed6037bf4a91 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 12 Aug 2017 13:14:51 +0200 Subject: [PATCH] show splitWhitespace instead of split in tut2 --- doc/tut2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tut2.rst b/doc/tut2.rst index 763dd9b01f..3215712815 100644 --- a/doc/tut2.rst +++ b/doc/tut2.rst @@ -218,7 +218,7 @@ So "pure object oriented" code is easy to write: import strutils, sequtils stdout.writeLine("Give a list of numbers (separated by spaces): ") - stdout.write(stdin.readLine.split.map(parseInt).max.`$`) + stdout.write(stdin.readLine.splitWhitespace.map(parseInt).max.`$`) stdout.writeLine(" is the maximum!")