Skip to content

Commit 669453c

Browse files
committed
Fix typos
1 parent 717a5db commit 669453c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ SYNOPSIS
7171
$class-heap.insert(State.new(value => 7));
7272
$class-heap.insert(State.new(value => 8));
7373

74-
$heap.find-max.value.say # 8;
75-
$heap.find-min.value.say # 0;
74+
$class-heap.find-max.value.say # 8;
75+
$class-heap.find-min.value.say # 0;
7676

7777
my @array;
78-
while (not $heap.is-empty()) {
79-
my $state = $heap.pop-max;
78+
while (not $class-heap.is-empty()) {
79+
my $state = $class-heap.pop-max;
8080
@array.push($state.value);
8181
}
8282
@array.say # [8, 7, 6, 5, 4, 3, 2, 1, 0]

lib/Algorithm/MinMaxHeap.pm6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ Algorithm::MinMaxHeap - double ended priority queue
416416
$class-heap.insert(State.new(value => 7));
417417
$class-heap.insert(State.new(value => 8));
418418
419-
$heap.find-max.value.say # 8;
420-
$heap.find-min.value.say # 0;
419+
$class-heap.find-max.value.say # 8;
420+
$class-heap.find-min.value.say # 0;
421421
422422
my @array;
423-
while (not $heap.is-empty()) {
424-
my $state = $heap.pop-max;
423+
while (not $class-heap.is-empty()) {
424+
my $state = $class-heap.pop-max;
425425
@array.push($state.value);
426426
}
427427
@array.say # [8, 7, 6, 5, 4, 3, 2, 1, 0]

0 commit comments

Comments
 (0)