diff --git a/src/OrderedSet.mo b/src/OrderedSet.mo index 28ef85a8..d61c5a0e 100644 --- a/src/OrderedSet.mo +++ b/src/OrderedSet.mo @@ -242,7 +242,7 @@ module { /// Space: `O(1)`, retained memory plus garbage, see the note below. /// where `m` and `n` denote the number of elements in the sets, and `m <= n`. /// - /// Note: Creates `O(log(n))` temporary objects that will be collected as garbage. + /// Note: Creates `O(m * log(n))` temporary objects that will be collected as garbage. public func union(s1 : Set, s2 : Set) : Set { if (size(s1) < size(s2)) { foldLeft(s1, s2, func(elem : T, acc : Set) : Set { Internal.put(acc, compare, elem) }) @@ -272,7 +272,7 @@ module { /// Space: `O(1)`, retained memory plus garbage, see the note below. /// where `m` and `n` denote the number of elements in the sets, and `m <= n`. /// - /// Note: Creates `O(log(n))` temporary objects that will be collected as garbage. + /// Note: Creates `O(m * log(n))` temporary objects that will be collected as garbage. public func intersect(s1 : Set, s2 : Set) : Set { if (size(s1) < size(s2)) { foldLeft(s1, empty(), @@ -318,7 +318,7 @@ module { /// Space: `O(1)`, retained memory plus garbage, see the note below. /// where `m` and `n` denote the number of elements in the sets, and `m <= n`. /// - /// Note: Creates `O(log(n))` temporary objects that will be collected as garbage. + /// Note: Creates `O(m * log(n))` temporary objects that will be collected as garbage. public func diff(s1 : Set, s2 : Set) : Set { if (size(s1) < size(s2)) { foldLeft(s1, empty(),