Mercurial > hg > octave-lyh
diff scripts/strings/index.m @ 5443:ec8c33dcd1bf
[project @ 2005-09-08 01:40:57 by jwe]
author | jwe |
---|---|
date | Thu, 08 Sep 2005 01:40:58 +0000 |
parents | 2a16423e4aa0 |
children | 34f96dd5441b |
line wrap: on
line diff
--- a/scripts/strings/index.m +++ b/scripts/strings/index.m @@ -41,7 +41,7 @@ usage ("index (s, t)"); endif - if (!isstr (s) || !isstr (t) || all (size (s) > 1) || all (size (t) > 1) ) + if (!ischar (s) || !ischar (t) || all (size (s) > 1) || all (size (t) > 1) ) error ("index: expecting string arguments"); endif