show splitWhitespace instead of split in tut2

This commit is contained in:
Araq
2017-08-12 13:14:51 +02:00
parent 6b3af6a5d7
commit 36a26875ef

View File

@@ -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!")