Skip to content

Commit f41f2ca

Browse files
committed
[Heap] Update docs
1 parent 30e6eb1 commit f41f2ca

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Documentation/Heap.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,7 @@ We also have non-optional flavors that assume the heap isn't empty, `removeMin()
104104

105105
### Iteration
106106

107-
`Heap` itself doesn't conform to `Sequence` because of the potential confusion around which direction it should iterate (largest-to-smallest? smallest-to-largest?). Instead, we expose two iterators that conform to `Sequence`:
108-
109-
```swift
110-
for val in heap.ascending {
111-
...
112-
}
113-
114-
for val in heap.descending {
115-
...
116-
}
117-
```
107+
`Heap` itself doesn't conform to `Sequence` because of the potential confusion around which direction it should iterate (largest-to-smallest? smallest-to-largest?).
118108

119109
### Performance
120110

0 commit comments

Comments
 (0)