fix docstring typos in mechanics.functions
Merge pull request #7507 from pierre-haessig/mecha-typo

fix docstring typos in mechanics.functions