Skip to content

Commit a128b4d

Browse files
author
jan.nijtmans
committed
Fix [5507a9c096]: Small error on https://www.tcl.tk/man/tcl/TclCmd/try.html
1 parent c65c7c0 commit a128b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/try.n

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Handle different reasons for a file to not be openable for reading:
8787
.PP
8888
.CS
8989
\fBtry\fR {
90-
set f [open /some/file/name w]
90+
set f [open /some/file/name r]
9191
} \fBtrap\fR {POSIX EISDIR} {} {
9292
puts "failed to open /some/file/name: it's a directory"
9393
} \fBtrap\fR {POSIX ENOENT} {} {

0 commit comments

Comments
 (0)