Skip to content

Incorrect signatures for span indexers #5208

@svick

Description

@svick

The signatures for indexers of Span<T> and ReadOnlySpan<T> don't show correctly in API reference.

For Span<T>, it shows as:

public T this[int index] { get; }

When it should be:

public ref T this[int index] { get; }

For ReadOnlySpan<T>, it shows as:

public T& this[int index] { get; }

When it should be:

public ref readonly T this[int index] { get; }

This seems to be caused by incorrect behavior of mdoc, so I have created and issue about this there: mono/api-doc-tools#249. But I thought it might make sense to also track fixing the output here (if and when mdoc is fixed), which is why I created this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions