Skip to content

Commit

Permalink
Merge pull request #4 from hickford/master
Browse files Browse the repository at this point in the history
Enlightenment through new versions
  • Loading branch information
cdarwin committed Jul 29, 2014
2 parents 84819ea + 7fba058 commit cd7e7d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion about_allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func aboutAllocation() {
slice := make([]int, 3)
assert(len(slice) == __int__) // make() creates slices of a given length

slice = make([]int, 3, __int__) // but can also take an optional capacity
slice = make([]int, 3, __positive_int__) // but can also take an optional capacity
assert(cap(slice) == 20)

m := make(map[int]string)
Expand Down
1 change: 1 addition & 0 deletions setup_koans_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
const (
__string__ string = "impossibly lame value"
__int__ int = -1
__positive_int__ int = 42
__byte__ byte = 255
__bool__ bool = false // ugh
__boolean__ bool = true // oh well
Expand Down

0 comments on commit cd7e7d8

Please sign in to comment.