From f253d81d1bd0c80a4dae993e3f0ba76ee470adef Mon Sep 17 00:00:00 2001 From: Ties de Wit Date: Thu, 1 Sep 2022 09:18:20 +0200 Subject: [PATCH] Update common.go --- internal/common/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/common/common.go b/internal/common/common.go index adc4922..db93b67 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -114,8 +114,8 @@ func ReadLines(filename string) ([]string, error) { // ReadLinesOffsetN reads contents from file and splits them by new line. // The offset tells at which line number to start. // The count determines the number of lines to read (starting from offset): -// n >= 0: at most n lines -// n < 0: whole file +// n >= 0: at most n lines +// n < 0: whole file func ReadLinesOffsetN(filename string, offset uint, n int) ([]string, error) { f, err := os.Open(filename) if err != nil {