From a4b2c1d2ba4fc6da549e05f71fad66595cec36eb Mon Sep 17 00:00:00 2001 From: dkf Date: Mon, 29 Oct 2007 16:00:04 +0000 Subject: Minor fixes --- doc/return.n | 6 +++--- doc/switch.n | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/doc/return.n b/doc/return.n index 6e6ba03..b6f6f37 100644 --- a/doc/return.n +++ b/doc/return.n @@ -6,7 +6,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: return.n,v 1.17 2007/10/29 11:28:50 dkf Exp $ +'\" RCS: @(#) $Id: return.n,v 1.18 2007/10/29 16:00:04 dkf Exp $ '\" .so man.macros .TH return n 8.5 Tcl "Tcl Built-In Commands" @@ -169,8 +169,8 @@ evaluation to terminate without evaluating all commands in sequence. Some of Tcl's built-in commands evaluate scripts as part of their functioning. These commands can make use of exceptional return codes to enable special features. For example, the built-in -Tcl commands that provide loops -- such as \fBwhile\fR, \fBfor\fR, -and \fBforeach\fR -- evaluate a script that is the body of the +Tcl commands that provide loops \(em such as \fBwhile\fR, \fBfor\fR, +and \fBforeach\fR \(em evaluate a script that is the body of the loop. If evaluation of the loop body returns the return code of \fBTCL_BREAK\fR or \fBTCL_CONTINUE\fR, the loop command can react in such a way as to give the \fBbreak\fR and \fBcontinue\fR commands diff --git a/doc/switch.n b/doc/switch.n index 554eb6f..62db89b 100644 --- a/doc/switch.n +++ b/doc/switch.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: switch.n,v 1.14 2007/10/29 01:42:19 dkf Exp $ +'\" RCS: @(#) $Id: switch.n,v 1.15 2007/10/29 16:00:04 dkf Exp $ '\" .so man.macros .TH switch n 8.5 Tcl "Tcl Built-In Commands" @@ -18,7 +18,6 @@ switch \- Evaluate one of several scripts, depending on a given value .sp \fBswitch \fR?\fIoptions\fR?\fI string \fR{\fIpattern body \fR?\fIpattern body \fR...?} .BE - .SH DESCRIPTION .PP The \fBswitch\fR command matches its \fIstring\fR argument against each of @@ -157,7 +156,7 @@ last) is taken. This example has a result of \fI3\fR: When matching against regular expressions, information about what exactly matched is easily obtained using the \fB\-matchvar\fR option: .CS -\fBswitch\fR -regexp -matchvar foo -- $bar { +\fBswitch\fR \-regexp \-matchvar foo \-\- $bar { a(b*)c { puts "Found [string length [lindex $foo 1]] 'b's" } @@ -168,9 +167,7 @@ exactly matched is easily obtained using the \fB\-matchvar\fR option: } .CE .VE 8.5 - .SH "SEE ALSO" for(n), if(n), regexp(n) - .SH KEYWORDS switch, match, regular expression -- cgit v0.12