From 7d43b367e7a89369c1302124677a305aa0d070c7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 22 Jun 2023 10:51:31 -0300 Subject: Improved documentation for accumulator captures --- lpcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lpcap.c') diff --git a/lpcap.c b/lpcap.c index fca8cbb..f13ecf4 100644 --- a/lpcap.c +++ b/lpcap.c @@ -477,7 +477,7 @@ static int addonestring (luaL_Buffer *b, CapState *cs, const char *what) { substcap(b, cs); /* add capture directly to buffer */ return 1; case Cacc: /* accumulator capture? */ - return luaL_error(cs->L, "accumulator capture inside substitution capture"); + return luaL_error(cs->L, "invalid context for an accumulator capture"); default: { lua_State *L = cs->L; int n = pushcapture(cs); -- cgit v1.2.3-55-g6feb