docs($rootScope): clean up inheritance example

Closes #10441