[#47] fixed some doc and code inconsistencies and removed some redundant parentheses

This commit is contained in:
Valley
2022-07-10 14:13:44 +08:00
committed by GitHub
parent d64fbf9011
commit 460c684caa
9 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
var cachedPatterns = map[string]*regexp.Regexp{}
// ExustInSlice checks whether a comparable element exists in a slice of the same type.
// ExistInSlice checks whether a comparable element exists in a slice of the same type.
func ExistInSlice[T comparable](item T, list []T) bool {
if len(list) == 0 {
return false