Skip to content

Commit 4a3c606

Browse files
authored
Merge pull request #1 from dreamheld/patch-1
Update README.md
2 parents 067a80c + d16fb97 commit 4a3c606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# complist
22
package for comparison of two items
33

4-
The package only has one function IsSame(interface{}, interface{}) (bool, error) which takes in two items and compares whether they have the same number type of elements. For now it works for all ints, uints, strings, slices, arrays, and maps. It DOES NOT work for comparing individual floats or structs (yet).
4+
The package only has one function IsSame(interface{}, interface{}) (bool, error) which takes in two items and compares whether they have the same number of elements of same values. For now it works for all ints, uints, strings, slices, arrays, and maps. It DOES NOT work for comparing individual floats or structs (yet).
55

66
IsSame compares two items according to the number and value of their elements. The two items are found to be identical if they have the same number of elements of the same value. So, "home" and "ohme", 12345 and 24153, a brand new box of Legos and another one already assembled would all be found identical.
77

0 commit comments

Comments
 (0)