Skip to content

Commit

Permalink
fix error text
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Dec 14, 2024
1 parent 3dbf56b commit 99e8abd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ b: - 2
{
">\n>",
`
[2:1] could not find multi line content
[2:1] could not find multi-line content
1 | >
> 2 | >
^
Expand All @@ -1245,7 +1245,7 @@ b: - 2
{
">\n1",
`
[2:1] could not find multi line content
[2:1] could not find multi-line content
1 | >
> 2 | 1
^
Expand All @@ -1254,7 +1254,7 @@ b: - 2
{
"|\n1",
`
[2:1] could not find multi line content
[2:1] could not find multi-line content
1 | |
> 2 | 1
^
Expand All @@ -1263,7 +1263,7 @@ b: - 2
{
"a: >3\n 1",
`
[2:3] invalid number of indent is specified in the multi line header
[2:3] invalid number of indent is specified in the multi-line header
1 | a: >3
> 2 | 1
^
Expand Down
2 changes: 1 addition & 1 deletion scanner/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (s *MultiLineState) validateIndentColumn() error {
return nil
}
if s.firstLineIndentColumn > s.lineIndentColumn {
return errors.New("invalid number of indent is specified in the multi line header")
return errors.New("invalid number of indent is specified in the multi-line header")
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ func (s *Scanner) scan(ctx *Context) error {
if tk.Position.Column == 1 {
return ErrInvalidToken(
token.Invalid(
"could not find multi line content",
"could not find multi-line content",
string(ctx.obuf), s.pos(),
),
)
Expand Down

0 comments on commit 99e8abd

Please sign in to comment.