fix `@doc` for abstract types
Merge pull request #8981 from mauro3/doc_abstract

fix `@doc`  for abstract types