From 878fda13cac3112abea6230134e3dd6940c1616e Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Thu, 3 Sep 2020 14:00:18 -0400 Subject: [PATCH] Correct typo in error message (#280) --- src/JuliaFormatter.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JuliaFormatter.jl b/src/JuliaFormatter.jl index b0a0297eb..f7b153d2f 100644 --- a/src/JuliaFormatter.jl +++ b/src/JuliaFormatter.jl @@ -269,7 +269,7 @@ end function format_text(text::AbstractString, style::AbstractStyle, opts::Options) cst, ps = CSTParser.parse(CSTParser.ParseState(text), true) line, offset = ps.lt.endpos - ps.errored && error("Parsing error for input occured on line $line, offset: $offset") + ps.errored && error("Parsing error for input occurred on line $line, offset: $offset") cst.args[1].kind === Tokens.NOTHING && length(cst) == 1 && return text return format_text(cst, style, State(Document(text), opts)) end