Skip to content

Commit

Permalink
chore: rename file and change variable names to more transparent and …
Browse files Browse the repository at this point in the history
…clear in readability
  • Loading branch information
bschaatsbergen committed Dec 5, 2023
1 parent f647fa6 commit d937b94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/helper/help.go → pkg/helper/contains.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package helper

// ContainsInt checks if the given slice of integers contains the specified integer.
// It returns true if the integer is within the slice, otherwise false.
func ContainsInt(s []int, e int) bool {
for _, a := range s {
if a == e {
func ContainsInt(ints []int, specifiedInt int) bool {
for _, i := range ints {
if i == specifiedInt {
return true
}
}
Expand Down

0 comments on commit d937b94

Please sign in to comment.