~turminal/hare

d1cf40891bc75c036e9ce60ab5bc9cfad32baf74 — Bor Grošelj Simić 4 months ago 2ac7218
regex: fix typos in error messages

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>
1 files changed, 2 insertions(+), 2 deletions(-)

M regex/regex.ha
M regex/regex.ha => regex/regex.ha +2 -2
@@ 434,7 434,7 @@ fn parse_repetition(
		min = match (strconv::stoi(min_str)) {
		case let res: int =>
			yield if (res < 0) {
				return `Negative repitition count '{-n}'`: error;
				return `Negative repetition count '{-n}'`: error;
			} else {
				yield res: size;
			};


@@ 448,7 448,7 @@ fn parse_repetition(
		max = match (strconv::stoi(max_str)) {
		case let res: int =>
			yield if (res < 0) {
				return `Negative repitition count '{-n}'`: error;
				return `Negative repetition count '{-n}'`: error;
			} else {
				yield res: size;
			};