Wrong example in man package
Closed / Out of Date1623466fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-12-28 08:54:23
At the end of the package man page, the code example has the logic reversed:
if {[catch {package require Snack}]} {
# We have the package, configure the app to use it
} else {
# Set up a dummy interface to work around the absence
}
I suggest to put a "!" in front of [catch :)
dkfplain2006-12-29 06:24:52
Logged In: YES user_id=79902 Originator: NO Only fault in 8.4 branch.
dgpplain2007-01-30 00:04:47
Logged In: YES user_id=80530 Originator: NO This was fixed for 8.4.14 back in September.
Log in (anonymous is fine) to add a comment.