fixing typo in code example

found this error upon copy-pasta of this snippet