correct apply/3 example
Merge pull request #847 from jeremyjh/apply-doc-fix

correct apply/3 example