Permalink
Browse files

heaps: fix minor doc typo.

  • Loading branch information...
mrjbq7 committed Jan 11, 2019
1 parent d29052c commit 75f36fa9c5accaf676ea63f857a678e7d6641426
Showing with 1 addition and 1 deletion.
  1. +1 −1 basis/heaps/heaps.factor
@@ -117,7 +117,7 @@ M: heap heap-push*
! A quote from cpython's implementation:
! > We *could* break out of the loop as soon as we find a pos where newitem <=
! > both its children, but turns out that's not a good idea [...]
! Indeed the code is 33% slower if we remove this optmization.
! Indeed the code is 33% slower if we remove this optimization.
:: sift-up ( heap n -- )
heap data>> :> data
data length :> end

0 comments on commit 75f36fa

Please sign in to comment.