diff options
author | hobbs <hobbs> | 2006-09-04 19:36:02 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2006-09-04 19:36:02 (GMT) |
commit | 410d087dcbd593635b27707dfbda7795e878d320 (patch) | |
tree | b1e21033a847851459182713c048ed9f57ffd310 | |
parent | 882d4ad3cbe738f250c1adb5ca50bb9895712182 (diff) | |
download | tcl-410d087dcbd593635b27707dfbda7795e878d320.zip tcl-410d087dcbd593635b27707dfbda7795e878d320.tar.gz tcl-410d087dcbd593635b27707dfbda7795e878d320.tar.bz2 |
correct package example
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | doc/package.n | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,7 @@ +2006-09-04 Jeff Hobbs <jeffh@ActiveState.com> + + * doc/package.n: correct package example + 2006-08-31 Don Porter <dgp@users.sourceforge.net> * generic/tclCompExpr.c: Corrected flawed logic for diff --git a/doc/package.n b/doc/package.n index abbaadf..4700e7c 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.10 2005/11/09 21:26:38 dgp Exp $ +'\" RCS: @(#) $Id: package.n,v 1.11 2006/09/04 19:36:02 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 |