From 9a2d20523d169ea710207d0e54558bf3f785ec31 Mon Sep 17 00:00:00 2001 From: Karl Gaissmaier Date: Thu, 19 Jan 2023 15:57:58 +0100 Subject: [PATCH] typo --- treap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/treap.go b/treap.go index 70d3e60..82426b1 100644 --- a/treap.go +++ b/treap.go @@ -528,7 +528,7 @@ func (n *node[T]) coveredBy(item T) (result []T) { return append(result, n.right.coveredBy(item)...) } -// Intersects returns true is any interval intersects item. +// Intersects returns true if any interval intersects item. func (t Tree[T]) Intersects(item T) bool { return t.root.intersects(item) }