fix doc error

the code in this doc has error in it.