correct typo in docstring
correct type decl