1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 09:17:17 +00:00

Merge pull request #1414 from MaxGyver83/master

Fix documentation of peg/replace
This commit is contained in:
Calvin Rose 2024-02-24 11:06:16 -08:00 committed by GitHub
commit 6032a6d658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 "