fixed a typo in docs, which prevented code from compiling