@@ -251,15 +251,15 @@ func (heap *FloatingFibonacciHeap) DequeueMin() (*Entry, error) {
251251func (heap * FloatingFibonacciHeap ) DecreaseKey (node * Entry , newPriority float64 ) (* Entry , error ) {
252252
253253 if heap .IsEmpty () {
254- return nil , EmptyHeapError ("Cannot decrease key in an empty heap" )
254+ return nil , EmptyHeapError ("cannot decrease key in an empty heap" )
255255 }
256256
257257 if node == nil {
258- return nil , NilError ("Cannot decrease key: given node is nil" )
258+ return nil , NilError ("cannot decrease key: given node is nil" )
259259 }
260260
261261 if newPriority >= node .Priority {
262- return nil , fmt .Errorf ("The given new priority: %v, is larger than or equal to the old: %v" ,
262+ return nil , fmt .Errorf ("the given new priority: %v, is larger than or equal to the old: %v" ,
263263 newPriority , node .Priority )
264264 }
265265
@@ -271,11 +271,11 @@ func (heap *FloatingFibonacciHeap) DecreaseKey(node *Entry, newPriority float64)
271271func (heap * FloatingFibonacciHeap ) Delete (node * Entry ) error {
272272
273273 if heap .IsEmpty () {
274- return EmptyHeapError ("Cannot delete element from an empty heap" )
274+ return EmptyHeapError ("cannot delete element from an empty heap" )
275275 }
276276
277277 if node == nil {
278- return NilError ("Cannot delete node: given node is nil" )
278+ return NilError ("cannot delete node: given node is nil" )
279279 }
280280
281281 decreaseKeyUnchecked (heap , node , - math .MaxFloat64 )
@@ -291,7 +291,7 @@ func (heap *FloatingFibonacciHeap) Delete(node *Entry) error {
291291func (heap * FloatingFibonacciHeap ) Merge (other * FloatingFibonacciHeap ) (FloatingFibonacciHeap , error ) {
292292
293293 if heap == nil || other == nil {
294- return FloatingFibonacciHeap {}, NilError ("One of the heaps to merge is nil. Cannot merge" )
294+ return FloatingFibonacciHeap {}, NilError ("one of the heaps to merge is nil. Cannot merge" )
295295 }
296296
297297 resultSize := heap .size + other .size
0 commit comments