From 69d3e0c46e34a57e6cfcb58d36b28c6f0beb134e Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Mon, 30 Sep 2024 10:32:33 -0400 Subject: fix(lint): Fix or ignore lint errors (#2228) Signed-off-by: Dave Henderson --- strings/strings.go | 2 +- strings/strings_fuzz_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'strings') diff --git a/strings/strings.go b/strings/strings.go index 248ae9b1..aece28a2 100644 --- a/strings/strings.go +++ b/strings/strings.go @@ -111,7 +111,7 @@ type WordWrapOpts struct { LBSeq string // The desired maximum line length in characters (defaults to 80) - Width uint + Width uint32 } // applies default options diff --git a/strings/strings_fuzz_test.go b/strings/strings_fuzz_test.go index 52472c4a..33f73bab 100644 --- a/strings/strings_fuzz_test.go +++ b/strings/strings_fuzz_test.go @@ -61,11 +61,11 @@ things very badly. To wit: https://example.com/a/super-long/url/that-shouldnt-be?wrapped=for+fear+of#the-breaking-of-functionality should appear on its own line, regardless of the desired word-wrapping width that has been set.` - f.Add(out, "", uint(0)) - f.Add(out, "\n", uint(80)) - f.Add(out, "\v", uint(10)) + f.Add(out, "", uint32(0)) + f.Add(out, "\n", uint32(80)) + f.Add(out, "\v", uint32(10)) - f.Fuzz(func(t *testing.T, in, lbSeq string, width uint) { + f.Fuzz(func(t *testing.T, in, lbSeq string, width uint32) { for _, r := range lbSeq { if !unicode.IsSpace(r) { t.Skip("ignore non-whitespace sequences") -- cgit v1.2.3