Removed duplicated words in in comments and docs.
Issue #22975: Close block at right place.