Fix ol.inherits docs

This follows up on comments from @probins in #2621.

Closes #2626.