Skip to content

Commit

Permalink
Merge pull request #1414 from MaxGyver83/master
Browse files Browse the repository at this point in the history
Fix documentation of peg/replace
  • Loading branch information
bakpakin authored Feb 24, 2024
2 parents 03ae2ec + c29ab22 commit 6032a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/peg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ JANET_CORE_FN(cfun_peg_replace_all,
}

JANET_CORE_FN(cfun_peg_replace,
"(peg/replace peg repl text &opt start & args)",
"(peg/replace peg subst text &opt start & args)",
"Replace first match of `peg` in `text` with `subst`, returning a new buffer. "
"The peg does not need to make captures to do replacement. "
"If `subst` is a function, it will be called with the "
Expand Down

0 comments on commit 6032a6d

Please sign in to comment.