diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-02-08 09:23:56 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-02-08 09:23:56 (GMT) |
commit | 98040fe8bcb5786e0e2743bc32dc10b576f86f93 (patch) | |
tree | 51c7bf9c2d087ad41b3bdfe67167b46770aa9601 | |
parent | 3c8b0820ea8c617e68e7f455a5d62b237f16bb2c (diff) | |
download | tcl-98040fe8bcb5786e0e2743bc32dc10b576f86f93.zip tcl-98040fe8bcb5786e0e2743bc32dc10b576f86f93.tar.gz tcl-98040fe8bcb5786e0e2743bc32dc10b576f86f93.tar.bz2 |
[3603804]: Improve example to actually be capable of throwing the trapped errors
-rw-r--r-- | doc/try.n | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} {} { |