From ef4f3a54feaa9ebf967dd944bb8da5108a351d07 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Sun, 8 Jun 2014 02:01:21 -0500 Subject: [PATCH] Improve `index` and `rindex` examples --- docs/content/3.manual/manual.yml | 7 +++++-- 1 file 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: |