Skip to content

Commit

Permalink
typo: fix code in README
Browse files Browse the repository at this point in the history
Also fix lint warning:
```
WARN [config_reader] The configuration option `linters.govet.check-shadowing` is deprecated.
Please enable `shadow` instead, if you are not using `enable-all`.
```
  • Loading branch information
serprex committed Oct 12, 2024
1 parent 780d68d commit f993630
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ linters-settings:
excludes:
- G115 # Annoying and have a lot of false-positive results.
govet:
check-shadowing: true
enable:
- shadow
gocyclo:
min-complexity: 15
maligned:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ _, _ = out.Write(buf.Buf)
// To do this, reset buf and all columns, append new values
// to columns and call EncodeRawBlock again.
buf.Reset()
colV.Reset()
colK.Reset()
colV.Reset()
```

Expand Down

0 comments on commit f993630

Please # to comment.