summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2024-09-30 10:32:33 -0400
committerGitHub <noreply@github.com>2024-09-30 14:32:33 +0000
commit69d3e0c46e34a57e6cfcb58d36b28c6f0beb134e (patch)
tree23c1918d661ef7c79e4c58394c3f3468795aab82 /strings
parent8f40d1fffd456266a1ac563df8fde5589e52d8de (diff)
fix(lint): Fix or ignore lint errors (#2228)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'strings')
-rw-r--r--strings/strings.go2
-rw-r--r--strings/strings_fuzz_test.go8
2 files changed, 5 insertions, 5 deletions
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")