Skip to content

Commit

Permalink
minor code nits
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Bray <tbray@textuality.com>
  • Loading branch information
timbray committed Apr 11, 2024
1 parent 5b6791a commit 43bfe8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions internal/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ func TestArgSyntax(t *testing.T) {
{"--sample", "--trace"}, {"--trace"},
{"--sed"}, {"-s", "x"}, {"--sample", "--sed", "1"},
{"--width", "a"}, {"-w", "0"}, {"--sample", "-w"},
// COMMENT OUT FOLLOWING TO ENABLE TRACING
{"--cpuprofile", "/tmp/cp"},
{"--trace", "/tmp/tr"},
}

// not testing -h/--help because it'd be extra work to avoid printing out the usage
Expand Down
2 changes: 1 addition & 1 deletion internal/segmenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func newSegment(fname string, start int64, end int64) (*Segment, error) {
end += int64(len(tillNL))
}

// now seek back to the beginning of the file to get ready for reading
// now seek back to the beginning of the segment to get ready for reading
offset, err = file.Seek(start, 0)
if err != nil {
return nil, err
Expand Down

0 comments on commit 43bfe8f

Please sign in to comment.