From 2a766dfc4c593b15c085c3e8d74cd738f50ef016 Mon Sep 17 00:00:00 2001 From: Jsor Date: Sat, 13 Jul 2013 18:45:57 -0700 Subject: [PATCH] Brought dest/s1/s2 in line with matrix --- set.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/set.go b/set.go index b4e0c47c..32a96655 100644 --- a/set.go +++ b/set.go @@ -70,7 +70,7 @@ func (s1 Set) Equal(s2 Set) bool { return true } -func (s1 Set) Union(dest, s2 Set) Set { +func (dest Set) Union(s1, s2 Set) Set { if s1.id == s2.id { return s1.CopyTo(dest) } @@ -94,7 +94,7 @@ func (s1 Set) Union(dest, s2 Set) Set { return dest } -func (s1 Set) Intersection(dest, s2 Set) Set { +func (dest Set) Intersection(s1, s2 Set) Set { var swap Set if s1.id == s2.id { @@ -127,7 +127,7 @@ func (s1 Set) Intersection(dest, s2 Set) Set { return dest } -func (s1 Set) Diff(dest, s2 Set) Set { +func (dest Set) Diff(s1, s2 Set) Set { if s1.id == s2.id { return dest.Clear() } else if s2.id == dest.id {