Fix variable name typos in doc example