minor typos in the doc of applyOrElse
Merge pull request #3584 from martijnhoekstra/patch-1

minor typos in the doc of applyOrElse