Commit 6ad444c4 authored by cznic's avatar cznic

Merge pull request #2 from kortschak/put-doc

Fix example signature for Put explanation
parents 5c732b36 4157885c
......@@ -639,7 +639,7 @@ func (t *Tree) Set(k interface{} /*K*/, v interface{} /*V*/) {
//
// tree.Set(k, v) conceptually equals
//
// tree.Put(k, func(k, v []byte){ return v, true }([]byte, bool))
// tree.Put(k, func(_ interface{}, _ bool){ return v, true }) (interface{}, bool)
//
// modulo the differing return values.
func (t *Tree) Put(k interface{} /*K*/, upd func(oldV interface{} /*V*/, exists bool) (newV interface{} /*V*/, write bool)) (oldV interface{} /*V*/, written bool) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment