correct examples

pull/1/head
buddhamagnet 11 years ago
parent 538ed6b0eb
commit 59e8cf4cdd

@ -202,7 +202,7 @@ import (
) )
func main() { func main() {
list := arraylist.New() list := sll.New()
list.Add("a") // ["a"] list.Add("a") // ["a"]
list.Add("c", "b") // ["a","c","b"] list.Add("c", "b") // ["a","c","b"]
list.Sort(utils.StringComparator) // ["a","b","c"] list.Sort(utils.StringComparator) // ["a","b","c"]
@ -239,7 +239,7 @@ import (
) )
func main() { func main() {
list := arraylist.New() list := dll.New()
list.Add("a") // ["a"] list.Add("a") // ["a"]
list.Add("c", "b") // ["a","c","b"] list.Add("c", "b") // ["a","c","b"]
list.Sort(utils.StringComparator) // ["a","b","c"] list.Sort(utils.StringComparator) // ["a","b","c"]

Loading…
Cancel
Save