From c29ab22e6d1e82442fef9f5ee13bc28d1a0ac3e0 Mon Sep 17 00:00:00 2001 From: Max Schillinger Date: Fri, 23 Feb 2024 12:46:45 +0100 Subject: [PATCH] Fix documentation of peg/replace --- src/core/peg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/peg.c b/src/core/peg.c index 1916b93e..35a36166 100644 --- a/src/core/peg.c +++ b/src/core/peg.c @@ -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 "