update example in doc.go