mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
show splitWhitespace instead of split in tut2
This commit is contained in:
@@ -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!")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user