summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-20 10:15:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-20 10:15:59 (GMT)
commitbc3e198cba9e40c015a6acfa992c69434274dde6 (patch)
tree2d9bf6a998ebe64c6b23ed7a7ac327bb9946764e /library/init.tcl
parentb946ce971fbde11b9739fc0b77237ed382e24bd0 (diff)
downloadtcl-bc3e198cba9e40c015a6acfa992c69434274dde6.zip
tcl-bc3e198cba9e40c015a6acfa992c69434274dde6.tar.gz
tcl-bc3e198cba9e40c015a6acfa992c69434274dde6.tar.bz2
Fix error-message for min/math functions: "to" -> "for", for consistancy with the error-messages for other math functions.
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 87d9f14..13a4300 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -79,7 +79,7 @@ namespace eval tcl {
proc min {args} {
if {![llength $args]} {
return -code error \
- "too few arguments to math function \"min\""
+ "too few arguments for math function \"min\""
}
set val Inf
foreach arg $args {
@@ -95,7 +95,7 @@ namespace eval tcl {
proc max {args} {
if {![llength $args]} {
return -code error \
- "too few arguments to math function \"max\""
+ "too few arguments for math function \"max\""
}
set val -Inf
foreach arg $args {