diff options
author | xioren <40043405+xioren@users.noreply.github.com> | 2021-06-21 18:53:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 18:53:35 -0700 |
commit | 16461a88101a398fd7349eb56392b27cdb285c17 (patch) | |
tree | cac7d0f75fb20aa0948328fde5fbb75d9ee1227a | |
parent | d398c558a44ad346c2cfadf266a8cf808585de6d (diff) | |
download | Nim-16461a88101a398fd7349eb56392b27cdb285c17.tar.gz |
add multi type exception catching to manual (#18258) (#18323)
-rw-r--r-- | doc/manual.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index f80b03369..a99c4b5af 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -4462,10 +4462,8 @@ Example: echo "sum: " & $(parseInt(a) + parseInt(b)) except OverflowDefect: echo "overflow!" - except ValueError: - echo "could not convert string to integer" - except IOError: - echo "IO error!" + except ValueError, IOError: + echo "catch multiple exceptions!" except: echo "Unknown exception!" finally: |