fix toFn example in README