sync example in README and doc.go