Improve index and rindex examples

This commit is contained in:
Nicolas Williams committed 2014-06-08 02:01:21 -05:00
1 parent 9af03c2562
commit ef4f3a54fe
1 file changed
+5 -2
+5 -2
View File
@@ -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: |