From c45367fc55347db4e4194977f93f2675d2ea546a Mon Sep 17 00:00:00 2001 From: def Date: Sat, 17 Jan 2015 03:57:38 +0100 Subject: [PATCH] Clarify documentation about "except clauses" They're called type conversions. Type casts are done with cast[T](...) and are not type safe. --- doc/manual/exceptions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manual/exceptions.txt b/doc/manual/exceptions.txt index f18ab5635b..0010d5d098 100644 --- a/doc/manual/exceptions.txt +++ b/doc/manual/exceptions.txt @@ -83,7 +83,7 @@ raised: Note that ``getCurrentException`` always returns a ``ref Exception`` type. If a variable of the proper type is needed (in the example -above, ``IOError``), one must use an explicit cast: +above, ``IOError``), one must convert it explicitly: .. code-block:: nim try: