diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-06-08 20:41:24 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-06-08 20:41:24 (GMT) |
commit | e2f893c45dbe2a557d9cd795832810381969813b (patch) | |
tree | 7e7b341aacb8a9f8b288e1ea7632a18d9e28aeda /generic | |
parent | 7658f9b25629d3a098ccd7eb0a5d9e5b79d0a5af (diff) | |
download | tcl-e2f893c45dbe2a557d9cd795832810381969813b.zip tcl-e2f893c45dbe2a557d9cd795832810381969813b.tar.gz tcl-e2f893c45dbe2a557d9cd795832810381969813b.tar.bz2 |
Make [string first] and [string last] clearer
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdMZ.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 274d8af..f07fb78 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdMZ.c,v 1.150 2007/05/01 20:20:44 dgp Exp $ + * RCS: @(#) $Id: tclCmdMZ.c,v 1.151 2007/06/08 20:41:25 dkf Exp $ */ #include "tclInt.h" @@ -1286,7 +1286,8 @@ Tcl_StringObjCmd( int match, start; if (objc < 4 || objc > 5) { - Tcl_WrongNumArgs(interp, 2,objv, "subString string ?startIndex?"); + Tcl_WrongNumArgs(interp, 2, objv, + "needleString haystackString ?startIndex?"); return TCL_ERROR; } @@ -1745,7 +1746,7 @@ Tcl_StringObjCmd( if (objc < 4 || objc > 5) { Tcl_WrongNumArgs(interp, 2, objv, - "subString string ?startIndex?"); + "needleString haystackString ?startIndex?"); return TCL_ERROR; } |