Skip to content

Commit

Permalink
Fix typo in tab error message (go-yaml#208).
Browse files Browse the repository at this point in the history
  • Loading branch information
mmb authored and niemeyer committed Mar 26, 2018
1 parent 14d1c46 commit 4fc5987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scannerc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2641,10 +2641,10 @@ func yaml_parser_scan_plain_scalar(parser *yaml_parser_t, token *yaml_token_t) b
for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) {
if is_blank(parser.buffer, parser.buffer_pos) {

// Check for tab character that abuse indentation.
// Check for tab characters that abuse indentation.
if leading_blanks && parser.mark.column < indent && is_tab(parser.buffer, parser.buffer_pos) {
yaml_parser_set_scanner_error(parser, "while scanning a plain scalar",
start_mark, "found a tab character that violate indentation")
start_mark, "found a tab character that violates indentation")
return false
}

Expand Down

0 comments on commit 4fc5987

Please sign in to comment.