From 7869a11c058b6ad05e97a720e6fbe252e6c9d420 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Sun, 17 Dec 2023 10:05:49 +0100 Subject: [PATCH] fix comments --- .gitignore | 3 --- readingtime.go | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 3b735ec..de67df5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -# If you prefer the allow list template instead of the deny list, see community template: -# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore -# # Binaries for programs and plugins *.exe *.exe~ diff --git a/readingtime.go b/readingtime.go index f368c76..855ea8c 100644 --- a/readingtime.go +++ b/readingtime.go @@ -23,7 +23,7 @@ const ( exceedMinute = 30 ) -// RawEstimate returns a float64 (seconds) represting an +// RawEstimate returns a float64 (seconds) representing an // estimation of how long it would take to read the input text. func RawEstimate(input string) float64 { words := strings.Fields(input) @@ -34,14 +34,14 @@ func RawEstimate(input string) float64 { return f } -// Estimate returns a time.Duration object represting an +// Estimate returns a time.Duration object representing an // estimation of how long it would take to read the input text. func Estimate(input string) time.Duration { f := RawEstimate(input) return duration(f) } -// HumanEstimate returns a string represting a humanly readable +// HumanEstimate returns a string representing a humanly readable // estimation of how long it would take to read the input text. func HumanEstimate(input string) string { var (