DOC: minor fix in extract docstring
Merge pull request #5838 from danielballan/extract-docstring

DOC: minor fix in extract docstring