docs icon indicating copy to clipboard operation
docs copied to clipboard

ReadOnlySpan<T>.StartsWith() example show wrong result

Open RickKra opened this issue 1 year ago • 0 comments

Type of issue

Typo

Description

That page says this:

ReadOnlySpan text = "some arbitrary text"; return text.StartsWith('"') && text.EndsWith('"'); // false

Shouldn't the comment indicate that the result is true?

Page URL

https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/libraries

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/whats-new/dotnet-9/libraries.md

Document Version Independent Id

0c8c7059-86a1-e5df-32e6-fae6fdc5cae0

Article author

@gewarren

Metadata

  • ID: 7c184200-3411-aa5b-ba3f-0b4a3ce0f589
  • Service: dotnet-fundamentals

Related Issues

RickKra avatar Oct 10 '24 22:10 RickKra