]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/reflect/deepequal.go
libgo: Update to current sources.
[thirdparty/gcc.git] / libgo / go / reflect / deepequal.go
index c12e90f36ccc229b5ad29d6bcabcf70ce1060442..cd364dd9fd90ddcffefb2e52b486f2a4346d7c4e 100644 (file)
@@ -125,6 +125,7 @@ func deepValueEqual(v1, v2 Value, visited map[uintptr]*visit, depth int) (b bool
 // DeepEqual tests for deep equality. It uses normal == equality where possible
 // but will scan members of arrays, slices, maps, and fields of structs. It correctly
 // handles recursive types. Functions are equal only if they are both nil.
+// An empty slice is not equal to a nil slice.
 func DeepEqual(a1, a2 interface{}) bool {
        if a1 == nil || a2 == nil {
                return a1 == a2