From d6a029c6294492911c92f9e5ec8500e3fa9708c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Sat, 12 Oct 2024 21:14:13 +0000 Subject: [PATCH] fix: code typo in README 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`. ``` --- .golangci.yml | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index c58b969a..cebb8335 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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: diff --git a/README.md b/README.md index da3d09f2..c072d452 100644 --- a/README.md +++ b/README.md @@ -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() ```