summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-09-04 19:35:49 (GMT)
committerhobbs <hobbs>2006-09-04 19:35:49 (GMT)
commit716cb672d7396e8c977685b34bb8f2e9babfb17f (patch)
tree2a136655580efcab745327dac0b87d8607638b58 /doc
parentf920d7dd092f88ec7de18f9412932c205bc17852 (diff)
downloadtcl-716cb672d7396e8c977685b34bb8f2e9babfb17f.zip
tcl-716cb672d7396e8c977685b34bb8f2e9babfb17f.tar.gz
tcl-716cb672d7396e8c977685b34bb8f2e9babfb17f.tar.bz2
correct package example
Diffstat (limited to 'doc')
-rw-r--r--doc/package.n7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/package.n b/doc/package.n
index cac5482..736e868 100644
--- a/doc/package.n
+++ b/doc/package.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: package.n,v 1.6.2.2 2005/11/09 21:26:14 dgp Exp $
+'\" RCS: @(#) $Id: package.n,v 1.6.2.3 2006/09/04 19:35:49 hobbs Exp $
'\"
.so man.macros
.TH package n 7.5 Tcl "Tcl Built-In Commands"
@@ -201,9 +201,10 @@ To test to see if the Snack package is available and load if it is
the functionality is not critical) do this:
.CS
if {[catch {\fBpackage require\fR Snack}]} {
- # We have the package, configure the app to use it
-} else {
+ # Error thrown - package not found.
# Set up a dummy interface to work around the absence
+} else {
+ # We have the package, configure the app to use it
}
.CE