diff options
author | Nicolas Williams <nico@cryptonector.com> | 2014-06-08 02:01:21 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2014-06-08 02:01:21 -0500 |
commit | ef4f3a54feaa9ebf967dd944bb8da5108a351d07 (patch) | |
tree | 972e7bc2fa4aae08a954e0ca342174660ea802fe | |
parent | 9af03c2562b2729afdea17e79844a437795f128d (diff) |
Improve `index` and `rindex` examples
-rw-r--r-- | docs/content/3.manual/manual.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index 10aa4f7d..5a77b5e1 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -1005,9 +1005,12 @@ sections: occurrence of `s` in the input. examples: - - program: '[index(", "), rindex(", ")' + - program: 'index(", ")' input: '"a,b, cd, efg, hijk"' - output: ['[3,12]'] + output: ['3'] + - program: 'rindex(", ")]' + input: '"a,b, cd, efg, hijk"' + output: ['12'] - title: `startswith` body: | |