Fix various issues with formatting and typos (#424)

* Fix typos

* Simplify code

* Fix error usage
This commit is contained in:
Michael Grosser
2016-11-13 14:03:12 +00:00
committed by Miek Gieben
parent f402b8f726
commit ece3cf8ecf
13 changed files with 19 additions and 19 deletions

View File

@@ -56,7 +56,7 @@ func (q *queue) pop() *Node {
return n
}
// empty returns true when the queue containes zero nodes.
// empty returns true when the queue contains zero nodes.
func (q *queue) empty() bool {
return len(*q) == 0
}