-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix remark about empty array #11625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix remark about empty array #11625
Conversation
Tagging subscribers to this area: @dotnet/area-system-runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM @gewarren
I saw a few places where the code might be more clear using raw string literals, but that's optional.
Console.WriteLine($"The first vowel in \n {s}\n" + | ||
$"is found at index {s.IndexOfAny(chars)}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: I would consider interpolated raw string literals here.
Console.WriteLine("The first character occurrence " + | ||
$"from position {start} to {str.Length - 1}:"); | ||
Console.WriteLine($"{Environment.NewLine}{br1}{Environment.NewLine}" + | ||
$"{br2}{Environment.NewLine}{str}{Environment.NewLine}"); | ||
Console.Write($"A character in '{target}' occurs at position: "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
Fixes #11556