Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardottt committed Dec 17, 2023
1 parent f6488e3 commit 7869a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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~
Expand Down
6 changes: 3 additions & 3 deletions readingtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 (
Expand Down

0 comments on commit 7869a11

Please sign in to comment.