documentation

code typo, need var keyword