Updated cgo (markdown)

Ian Lance Taylor 2016-06-03 11:03:43 -07:00
parent 1052a3c16d
commit 0a404a1b03

3
cgo.md

@ -126,6 +126,9 @@ func register(fn func(C.int)) int {
mu.Lock()
defer mu.Unlock()
index++
for fns[index] != nil {
index++
}
fns[index] = fn
return index
}