From a5dc812733d33c7c5bcab148ed42c6b1eca39dad Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Tue, 6 Oct 2026 17:19:00 +0200 Subject: [PATCH] bugfix: doc: heaps: typo in BinaryHeap example Fixes #786 --- docs/src/heaps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/heaps.md b/docs/src/heaps.md index 6e823ca4..ef1b7d8a 100644 --- a/docs/src/heaps.md +++ b/docs/src/heaps.md @@ -76,7 +76,7 @@ original array, but sorts only by the data value: ```julia data = collect(enumerate(["foo", "bar", "baz"])) -h1 = BinaryHeap(data) # Standard lexicographic ordering for tuples +h1 = BinaryHeap(Base.Order.Forward, data) # Standard lexicographic ordering for tuples first(h1) # => (1, "foo") h2 = BinaryHeap(Base.By(last), data) # Order by 2nd element only