summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorxioren <40043405+xioren@users.noreply.github.com>2021-06-21 18:53:35 -0700
committerGitHub <noreply@github.com>2021-06-21 18:53:35 -0700
commit16461a88101a398fd7349eb56392b27cdb285c17 (patch)
treecac7d0f75fb20aa0948328fde5fbb75d9ee1227a
parentd398c558a44ad346c2cfadf266a8cf808585de6d (diff)
downloadNim-16461a88101a398fd7349eb56392b27cdb285c17.tar.gz
add multi type exception catching to manual (#18258) (#18323)
-rw-r--r--doc/manual.rst6
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: