Skip to content

Commit

Permalink
Merge pull request #1651 from aliaspooryorik/patch-13
Browse files Browse the repository at this point in the history
Update right.json
  • Loading branch information
pfreitag authored Apr 29, 2024
2 parents 2b89820 + 8849229 commit 2ffb405
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion data/en/right.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description":" Gets a specified number of characters from a string,\n beginning at the right.",
"params": [
{"name":"String","description":"","required":true,"default":"","type":"string","values":[]},
{"name":"count","description":"A positive integer or a variable that contains one.\n Number of characters to return.","required":true,"default":"","type":"numeric","values":[]}
{"name":"count","description":"An integer or a variable that contains one.\n Number of characters to return.","required":true,"default":"","type":"numeric","values":[]}
],
"engines": {
"coldfusion": {"minimum_version":"", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-m-r/right.html"},
Expand All @@ -24,6 +24,13 @@
"result": "lazy dog",
"runnable":true
},
{
"title": "Using right() with a negative count on a string",
"description": "In this example we'll use a negative count right() to return part of a string.",
"code": "writeOutput( right( 'The quick brown fox jumped over the lazy dog', -32 ) );",
"result": "the lazy dog",
"runnable":true
},
{
"title": "Using right() in a function",
"description": "In this example we'll use right() in a function to help us to capitalize the last letter in a string.",
Expand Down

0 comments on commit 2ffb405

Please sign in to comment.