diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-05-09 14:09:53 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-05-09 14:09:53 +0300 |
commit | f23270d71c3cdb85b79677f07378eac9e6bcafb5 (patch) | |
tree | 89be05f5275de3c01a8e92729b4bc04739c62f06 /doc/gawktexi.in | |
parent | 1ecf59325e466aed32ebfe71da3b7af8c15306cb (diff) | |
download | egawk-f23270d71c3cdb85b79677f07378eac9e6bcafb5.tar.gz egawk-f23270d71c3cdb85b79677f07378eac9e6bcafb5.tar.bz2 egawk-f23270d71c3cdb85b79677f07378eac9e6bcafb5.zip |
Make /regex/ a 2nd arg to index() a fatal error.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 799c172f..b5e682bb 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -15106,6 +15106,8 @@ $ @kbd{awk 'BEGIN @{ print index("peanut", "an") @}'} If @var{find} is not found, @code{index()} returns zero. (Remember that string indices in @command{awk} start at one.) +It is a fatal error to use a regexp constant for @var{find}. + @item length(@r{[}@var{string}@r{]}) @cindex @code{length()} function Return the number of characters in @var{string}. If |