Fix ol.inherits docs

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