Omit semicolons consistently in docs

Fixes #12644.