diff options
author | Araq <rumpf_a@web.de> | 2017-08-12 13:14:51 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-08-13 02:51:00 +0200 |
commit | 36a26875ef6344fb1bb59ad64d8eed6037bf4a91 (patch) | |
tree | f98a67e818c3918d3b45b90807f45e885ab65f38 | |
parent | 6b3af6a5d7a370784c3191c7640965b3b9e00f59 (diff) | |
download | Nim-36a26875ef6344fb1bb59ad64d8eed6037bf4a91.tar.gz |
show splitWhitespace instead of split in tut2
-rw-r--r-- | doc/tut2.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tut2.rst b/doc/tut2.rst index 763dd9b01..321571281 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!") |