summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-18 15:03:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-18 15:03:29 (GMT)
commita128b4d651075c9263df3e8959beaac5a403e54d (patch)
tree5435c4cf425fdf7bc450f81c78be2ee609e05d11 /doc
parentc65c7c0a590554342da91a1e72b1f090f81ba95a (diff)
downloadtcl-a128b4d651075c9263df3e8959beaac5a403e54d.zip
tcl-a128b4d651075c9263df3e8959beaac5a403e54d.tar.gz
tcl-a128b4d651075c9263df3e8959beaac5a403e54d.tar.bz2
Fix [5507a9c096]: Small error on https://www.tcl.tk/man/tcl/TclCmd/try.html
Diffstat (limited to 'doc')
-rw-r--r--doc/try.n2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/try.n b/doc/try.n
index eae4dc7..992dcea 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 w]
+ set f [open /some/file/name r]
} \fBtrap\fR {POSIX EISDIR} {} {
puts "failed to open /some/file/name: it's a directory"
} \fBtrap\fR {POSIX ENOENT} {} {