summary refs log tree commit diff stats
path: root/doc/manual/exceptions.txt
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-26 12:58:44 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-26 12:58:44 +0100
commitcfe5447e95be278f896a672a51b838d7243ca813 (patch)
tree1cedb9e40f84d35ee1e0c6912275b9a17edd5b87 /doc/manual/exceptions.txt
parent1fbeedaba25af170bfb3ad00de1ccad1f8da1546 (diff)
parentcd574d197646f6d77bc6045d9bdc16982fc14548 (diff)
downloadNim-cfe5447e95be278f896a672a51b838d7243ca813.tar.gz
Merge pull request #3777 from sheerun/echo
Promote "echo" syntax without parenthesis
Diffstat (limited to 'doc/manual/exceptions.txt')
-rw-r--r--doc/manual/exceptions.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/manual/exceptions.txt b/doc/manual/exceptions.txt
index 0010d5d09..d35130600 100644
--- a/doc/manual/exceptions.txt
+++ b/doc/manual/exceptions.txt
@@ -15,15 +15,15 @@ Example:
     try:
       var a = readLine(f)
       var b = readLine(f)
-      echo("sum: " & $(parseInt(a) + parseInt(b)))
+      echo "sum: " & $(parseInt(a + parseInt(b)))
     except OverflowError:
-      echo("overflow!")
+      echo "overflow!"
     except ValueError:
-      echo("could not convert string to integer")
+      echo "could not convert string to integer"
     except IOError:
-      echo("IO error!")
+      echo "IO error!"
     except:
-      echo("Unknown exception!")
+      echo "Unknown exception!"
     finally:
       close(f)