diff options
Diffstat (limited to 'doc/manual/exceptions.txt')
-rw-r--r-- | doc/manual/exceptions.txt | 10 |
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) |