Skip to content

Commit 1f5e7a8

Browse files
ClémentClément
authored andcommitted
Fixing heapsort inclusion.
1 parent a0e944a commit 1f5e7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/lectures/misc/sorting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ We first define some helper methods:
4545
and then leverage the heap structure to sort:
4646

4747
```
48-
!include`snippetStart="// Heapsort Algorithm", snippetEnd="// Done with heapsort Algorithm` code/projects/Sorting/Sorting/Sorting.cs
48+
!include`snippetStart="// Heapsort Algorithm", snippetEnd="// Done with heapsort Algorithm"` code/projects/Sorting/Sorting/Sorting.cs
4949
```
5050

5151
Note that `PercDown` builds a *max heap*: once the values are "pre-sorted **greater value first**", removing the first one to move it to the *end* of the list makes the list sorted from smallest to greatest value once we are done.

0 commit comments

Comments
 (0)