summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2014-06-08 02:01:21 -0500
committerNicolas Williams <nico@cryptonector.com>2014-06-08 02:01:21 -0500
commitef4f3a54feaa9ebf967dd944bb8da5108a351d07 (patch)
tree972e7bc2fa4aae08a954e0ca342174660ea802fe
parent9af03c2562b2729afdea17e79844a437795f128d (diff)
Improve `index` and `rindex` examples
-rw-r--r--docs/content/3.manual/manual.yml7
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: |