diff options
author | Adam Strzelecki <ono@java.pl> | 2015-09-04 23:05:22 +0200 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-09-04 23:05:22 +0200 |
commit | 5d80548cce84ea62dc8b85c10375f70d037ea4f8 (patch) | |
tree | 110db6acbe7cf57031571cbd5f3519bb3ee0a039 /web/snippets | |
parent | e80465dacf50f260abec30ae57d37b298c93fd83 (diff) | |
download | Nim-5d80548cce84ea62dc8b85c10375f70d037ea4f8.tar.gz |
examples: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
Diffstat (limited to 'web/snippets')
-rw-r--r-- | web/snippets/snippet1.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/snippets/snippet1.nim b/web/snippets/snippet1.nim index 85cb98142..b0895e0c0 100644 --- a/web/snippets/snippet1.nim +++ b/web/snippets/snippet1.nim @@ -1,4 +1,4 @@ import strutils -echo "Give a list of integers (separated by spaces): ", +echo "Give a list of integers (separated by spaces): ", stdin.readLine.split.each(parseInt).max, - " is the maximum!" + " is the maximum!" |