diff options
-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!") |