From 35457aba813c99e6a5814074ed891289053072d1 Mon Sep 17 00:00:00 2001 From: Emir Pasic Date: Fri, 24 Jun 2016 20:27:34 +0200 Subject: [PATCH] - fix spelling --- lists/arraylist/arraylist.go | 2 +- lists/doublylinkedlist/doublylinkedlist.go | 2 +- lists/singlylinkedlist/singlylinkedlist.go | 2 +- stacks/arraystack/arraystack.go | 2 +- stacks/linkedliststack/linkedliststack.go | 2 +- trees/binaryheap/binaryheap.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lists/arraylist/arraylist.go b/lists/arraylist/arraylist.go index cdcd2d9..34cee03 100644 --- a/lists/arraylist/arraylist.go +++ b/lists/arraylist/arraylist.go @@ -286,7 +286,7 @@ func (list *List) String() string { return str } -// Check that the index is withing bounds of the list +// Check that the index is within bounds of the list func (list *List) withinRange(index int) bool { return index >= 0 && index < list.size } diff --git a/lists/doublylinkedlist/doublylinkedlist.go b/lists/doublylinkedlist/doublylinkedlist.go index 73f7e59..1d50f09 100644 --- a/lists/doublylinkedlist/doublylinkedlist.go +++ b/lists/doublylinkedlist/doublylinkedlist.go @@ -418,7 +418,7 @@ func (list *List) String() string { return str } -// Check that the index is withing bounds of the list +// Check that the index is within bounds of the list func (list *List) withinRange(index int) bool { return index >= 0 && index < list.size } diff --git a/lists/singlylinkedlist/singlylinkedlist.go b/lists/singlylinkedlist/singlylinkedlist.go index e71a36f..7cd5efc 100644 --- a/lists/singlylinkedlist/singlylinkedlist.go +++ b/lists/singlylinkedlist/singlylinkedlist.go @@ -388,7 +388,7 @@ func (list *List) String() string { return str } -// Check that the index is withing bounds of the list +// Check that the index is within bounds of the list func (list *List) withinRange(index int) bool { return index >= 0 && index < list.size } diff --git a/stacks/arraystack/arraystack.go b/stacks/arraystack/arraystack.go index 2276957..466797f 100644 --- a/stacks/arraystack/arraystack.go +++ b/stacks/arraystack/arraystack.go @@ -137,7 +137,7 @@ func (stack *Stack) String() string { return str } -// Check that the index is withing bounds of the list +// Check that the index is within bounds of the list func (stack *Stack) withinRange(index int) bool { return index >= 0 && index < stack.list.Size() } diff --git a/stacks/linkedliststack/linkedliststack.go b/stacks/linkedliststack/linkedliststack.go index 551377e..71df93c 100644 --- a/stacks/linkedliststack/linkedliststack.go +++ b/stacks/linkedliststack/linkedliststack.go @@ -133,7 +133,7 @@ func (stack *Stack) String() string { return str } -// Check that the index is withing bounds of the list +// Check that the index is within bounds of the list func (stack *Stack) withinRange(index int) bool { return index >= 0 && index < stack.list.Size() } diff --git a/trees/binaryheap/binaryheap.go b/trees/binaryheap/binaryheap.go index 79e7ec5..3f1c759 100644 --- a/trees/binaryheap/binaryheap.go +++ b/trees/binaryheap/binaryheap.go @@ -192,7 +192,7 @@ func (heap *Heap) bubbleUp() { } } -// Check that the index is withing bounds of the list +// Check that the index is within bounds of the list func (heap *Heap) withinRange(index int) bool { return index >= 0 && index < heap.list.Size() }