doc: fix documentation generation

There was a syntax error in the `slice` doc-comment.