Skip to content

Commit

Permalink
Merge pull request #32 from NREL/updatereplacedoc
Browse files Browse the repository at this point in the history
updated documentation for the lk replace function to be more clear
  • Loading branch information
janinefreeman authored Mar 2, 2022
2 parents 67209e3 + 048e54b commit 18977bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ static void _sprintf(lk::invoke_t &cxt) {
}

static void _strpos(lk::invoke_t &cxt) {
LK_DOC("strpos", "Locates the first instance of a character or substring in a string.", "(string, string):integer");
LK_DOC("strpos", "Locates the first instance of a character or substring (s2) in a string (s1).", "(string:s1, string:s2):integer");
lk_string s = cxt.arg(0).as_string();
lk_string f = cxt.arg(1).as_string();
lk_string::size_type idx = s.find(f);
Expand Down

0 comments on commit 18977bd

Please sign in to comment.