dotnet / dotnet/dotnet-api-docs

Typo in "Char.IsSeparator Method" Documentation

Open
#10,079 4 comments 0 reactions 0 assignees View on GitHub
area-System.Globalization Pri3
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

In the documentation page about "Char.IsSeparator Method"
(url = https://learn.microsoft.com/en-us/dotnet/api/system.char.isseparator?view=net-8.0)
the example has a typo. The character '@' should be accompanied by the '$' character, e.g. @$ or $@ so the relevant line should be:
Console.WriteLine(@$"\u{(int)ch:X4} ({Char.GetUnicodeCategory(ch)})");

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.