diff options
author | hobbs <hobbs@noemail.net> | 2006-09-04 19:35:48 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2006-09-04 19:35:48 (GMT) |
commit | 8a4640525fc3036c75ad684def8368f1d7d5f962 (patch) | |
tree | 2a136655580efcab745327dac0b87d8607638b58 | |
parent | 2350f4aa2def8dcf64da44b43203ac52d9c4fe6c (diff) | |
download | tcl-8a4640525fc3036c75ad684def8368f1d7d5f962.zip tcl-8a4640525fc3036c75ad684def8368f1d7d5f962.tar.gz tcl-8a4640525fc3036c75ad684def8368f1d7d5f962.tar.bz2 |
correct package example
FossilOrigin-Name: 7d94c968f05a1c16a5295cce610f3c0c5ac48382
-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-30 Jeff Hobbs <jeffh@ActiveState.com> * win/tclWinChan.c: [Bug 819667] Improve logic for identifying COM 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 |