Skip to content

IsWhiteSpace() for empty spans. #11560

@burnchar

Description

@burnchar

Type of issue

Typo

Description

The wording is:
true if the span contains only whitespace characters, false otherwise.
This implies that empty spans, which do not contain any characters at all, yield false when IsWhiteSpace in fact yields true.
More explicit wording:

true if the span is empty or contains only whitespace characters, false otherwise.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/System.MemoryExtensions.IsWhiteSpace?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/MemoryExtensions.xml

Document Version Independent Id

2318923a-084f-0df8-959f-f66589448a3e

Platform Id

1c5f2f81-1e6a-67d8-a434-5ec221f08be4

Article author

@dotnet-bot

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy