Skip to content
Permalink
Browse files

also update strpos function help (followup 2a557db)

  • Loading branch information
jef-n committed Nov 20, 2015
1 parent fbb3dc5 commit 90053c52d659ccbd9c2e87814b00396002469614
Showing with 3 additions and 3 deletions.
  1. +3 −3 resources/function_help/json/strpos
@@ -1,10 +1,10 @@
{
"name": "strpos",
"type": "function",
"description": "Return the first matching position of a substring within another string, or -1 if the substring is not found.",
"description": "Return the first matching position of a substring within another string, or 0 if the substring is not found.",
"arguments": [ {"arg":"haystack","description":"string that is to be searched"},
{"arg":"needle","description":"string to search for"}],
"examples": [ { "expression":"strpos('HELLO WORLD','WORLD')", "returns":"6"},
{ "expression":"strpos('HELLO WORLD','GOODBYE')", "returns":"-1"}
"examples": [ { "expression":"strpos('HELLO WORLD','WORLD')", "returns":"7"},
{ "expression":"strpos('HELLO WORLD','GOODBYE')", "returns":"0"}
]
}

0 comments on commit 90053c5

Please sign in to comment.
You can’t perform that action at this time.