summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-12-13 11:22:43 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-12-13 11:22:43 (GMT)
commitaade3501c09273bd682cd0c3cd0955a2df0e02ba (patch)
treeaab1fe13da57ec81701a43c2b03896ab83ee4469
parenta171ce15f5cc1786397352ff4780563ebbe216b8 (diff)
downloadtk-aade3501c09273bd682cd0c3cd0955a2df0e02ba.zip
tk-aade3501c09273bd682cd0c3cd0955a2df0e02ba.tar.gz
tk-aade3501c09273bd682cd0c3cd0955a2df0e02ba.tar.bz2
Make example follow best practices.
-rw-r--r--ChangeLog5
-rw-r--r--doc/getOpenFile.n4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d5132e..42cb8c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-13 Donal K. Fellows <dkf@users.sf.net>
+
+ * doc/getOpenFile.n: Make example follow best practices. Issue spotted
+ by Emiliano Gavilan.
+
2011-11-29 Donal K. Fellows <dkf@users.sf.net>
* tests/safe.test: [Bug 1847925]: Update list of hidden commands.
diff --git a/doc/getOpenFile.n b/doc/getOpenFile.n
index 7ebae67..8274259 100644
--- a/doc/getOpenFile.n
+++ b/doc/getOpenFile.n
@@ -182,9 +182,9 @@ set types {
{{GIF Files} {} GIFF}
{{All Files} * }
}
-set filename [tk_getOpenFile \-filetypes $types]
+set filename [\fBtk_getOpenFile\fR \-filetypes $types]
-if {$filename != ""} {
+if {$filename ne ""} {
# Open the file ...
}
.CE