diff --git a/src/core/CCHeap.ml b/src/core/CCHeap.ml index 23c2cd41..984d4a09 100644 --- a/src/core/CCHeap.ml +++ b/src/core/CCHeap.ml @@ -46,6 +46,7 @@ module type S = sig val merge : t -> t -> t (** [merge h1 h2] merges the two heaps [h1] and [h2]. + If one heap is empty, the result is physically equal to the other heap. Complexity: [O(log (m+n))] where [m] and [n] are the number of elements in each heap. *) diff --git a/src/core/CCHeap.mli b/src/core/CCHeap.mli index fe40aa19..79bbe32d 100644 --- a/src/core/CCHeap.mli +++ b/src/core/CCHeap.mli @@ -43,6 +43,7 @@ module type S = sig val merge : t -> t -> t (** [merge h1 h2] merges the two heaps [h1] and [h2]. + If one heap is empty, the result is physically equal to the other heap. Complexity: [O(log (m+n))] where [m] and [n] are the number of elements in each heap. *)