From 0478218ec16046387c854a4658dde30b4f58d5e4 Mon Sep 17 00:00:00 2001 From: Onur Cinar Date: Sun, 2 Jun 2024 14:22:29 -0700 Subject: [PATCH] Go Report Card - helper/divide.go - Line 17: warning: "divison" is a misspelling of "division" (misspell) (#145) # Describe Request Go Report Card - helper/divide.go - Line 17: warning: "divison" is a misspelling of "division" (misspell) Fixed #142 # Change Type Bug fix. --- helper/README.md | 2 +- helper/divide.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/README.md b/helper/README.md index c5d6291..38c5e7e 100644 --- a/helper/README.md +++ b/helper/README.md @@ -359,7 +359,7 @@ Example: ac := helper.SliceToChan([]int{2, 4, 6, 8, 10}) bc := helper.SliceToChan([]int{2, 1, 3, 2, 5}) -divison := helper.Divide(ac, bc) +division := helper.Divide(ac, bc) fmt.Println(helper.ChanToSlice(division)) // [1, 4, 2, 4, 2] ``` diff --git a/helper/divide.go b/helper/divide.go index 6d6f085..b99f09d 100644 --- a/helper/divide.go +++ b/helper/divide.go @@ -14,7 +14,7 @@ package helper // ac := helper.SliceToChan([]int{2, 4, 6, 8, 10}) // bc := helper.SliceToChan([]int{2, 1, 3, 2, 5}) // -// divison := helper.Divide(ac, bc) +// division := helper.Divide(ac, bc) // // fmt.Println(helper.ChanToSlice(division)) // [1, 4, 2, 4, 2] func Divide[T Number](ac, bc <-chan T) <-chan T {