Subject: [3603804]: Improve example to actually be capable of throwing the trapped errors

From: dkf <[email-masked]>
Date: Fri, 8 Feb 2013 09:23:56 +0000

---
 doc/try.n | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/try.n b/doc/try.n
index 393fe5b..78a006d 100644
--- a/doc/try.n
+++ b/doc/try.n
@@ -87,7 +87,7 @@ Handle different reasons for a file to not be openable for reading:
 .PP
 .CS
 \fBtry\fR {
-    set f [open /some/file/name]
+    set f [open /some/file/name w]
 } \fBtrap\fR {POSIX EISDIR} {} {
     puts "failed to open /some/file/name: it's a directory"
 } \fBtrap\fR {POSIX ENOENT} {} {
-- 
cgit v0.12