summaryrefslogtreecommitdiffstats
path: root/doc/try.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-17 22:14:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-17 22:14:48 (GMT)
commit7aaa5a8d0f666904afeda3e995fb46a33122a2de (patch)
tree6e055c25af5ac8ae9a3e794d2daf45272a60f615 /doc/try.n
parenta87c2925c5ff1caf3a88c8a249aae82699d7f5a0 (diff)
parent34480654e98d2543e4d9a16e4cd5cbcc5630b604 (diff)
downloadtcl-better_deprecation.zip
tcl-better_deprecation.tar.gz
tcl-better_deprecation.tar.bz2
Diffstat (limited to 'doc/try.n')
-rw-r--r--doc/try.n2
1 files changed, 1 insertions, 1 deletions
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} {} {