summaryrefslogtreecommitdiffstats
path: root/doc/scan.n
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-10-23 16:20:18 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-10-23 16:20:18 (GMT)
commit172896b15a2b5b8a1163c9de824e20297a876ed5 (patch)
tree6074d964f252d4293d75e502e72d89b131206e3e /doc/scan.n
parente9b584f81b87c299c819443f22bc5a81b20fff38 (diff)
downloadtcl-172896b15a2b5b8a1163c9de824e20297a876ed5.zip
tcl-172896b15a2b5b8a1163c9de824e20297a876ed5.tar.gz
tcl-172896b15a2b5b8a1163c9de824e20297a876ed5.tar.bz2
Implementation branch for TIP 114 - Eliminate Octal Parsing...
Diffstat (limited to 'doc/scan.n')
-rw-r--r--doc/scan.n6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/scan.n b/doc/scan.n
index 0c24fea..e87bef1 100644
--- a/doc/scan.n
+++ b/doc/scan.n
@@ -224,12 +224,10 @@ set string "#08D03F"
\fBscan\fR $string "#%2x%2x%2x" r g b
.CE
.PP
-Parse a \fIHH:MM\fR time string, noting that this avoids problems with
-octal numbers by forcing interpretation as decimals (if we did not
-care, we would use the \fB%i\fR conversion instead):
+Parse a \fIHH:MM\fR time string:
.PP
.CS
-set string "08:08" ;# *Not* octal!
+set string "08:08"
if {[\fBscan\fR $string "%d:%d" hours minutes] != 2} {
error "not a valid time string"
}