- fix spelling

pull/15/head
Emir Pasic 9 years ago
parent ab6656e286
commit 35457aba81

@ -286,7 +286,7 @@ func (list *List) String() string {
return str 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 { func (list *List) withinRange(index int) bool {
return index >= 0 && index < list.size return index >= 0 && index < list.size
} }

@ -418,7 +418,7 @@ func (list *List) String() string {
return str 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 { func (list *List) withinRange(index int) bool {
return index >= 0 && index < list.size return index >= 0 && index < list.size
} }

@ -388,7 +388,7 @@ func (list *List) String() string {
return str 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 { func (list *List) withinRange(index int) bool {
return index >= 0 && index < list.size return index >= 0 && index < list.size
} }

@ -137,7 +137,7 @@ func (stack *Stack) String() string {
return str 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 { func (stack *Stack) withinRange(index int) bool {
return index >= 0 && index < stack.list.Size() return index >= 0 && index < stack.list.Size()
} }

@ -133,7 +133,7 @@ func (stack *Stack) String() string {
return str 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 { func (stack *Stack) withinRange(index int) bool {
return index >= 0 && index < stack.list.Size() return index >= 0 && index < stack.list.Size()
} }

@ -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 { func (heap *Heap) withinRange(index int) bool {
return index >= 0 && index < heap.list.Size() return index >= 0 && index < heap.list.Size()
} }

Loading…
Cancel
Save