hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 7ea8406aaa344db65a5428cdc54e2b2152542e64
parent 65c30a82133df4643b92e0a0e50549f71720b6a3
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Wed, 27 Apr 2022 20:44:49 +0000

cmd/haredoc: fix error message

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

Diffstat:
Mcmd/haredoc/main.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha @@ -238,7 +238,7 @@ fn parseident(in: str) (ast::ident | parse::error) = { case => lex::unlex(&lexer, tok); const loc = lex::mkloc(&lexer); - const why = fmt::asprintf("Unexpected '{}' in ident\n", + const why = fmt::asprintf("Unexpected '{}' in ident", lex::tokstr(tok)); return (loc, why): lex::syntax: parse::error; };