Skip to content

Commit

Permalink
Fix typos (#54216)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinvanderVliet authored Jun 15, 2021
1 parent 5bc8807 commit 8f027af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/System.Private.CoreLib/src/System/Int32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static int Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.
}

// Parses an integer from a String. Returns false rather
// than throwing exceptin if input is invalid
// than throwing an exception if input is invalid.
//
public static bool TryParse([NotNullWhen(true)] string? s, out int result)
{
Expand All @@ -162,7 +162,7 @@ public static bool TryParse(ReadOnlySpan<char> s, out int result)
}

// Parses an integer from a String in the given style. Returns false rather
// than throwing exceptin if input is invalid
// than throwing an exception if input is invalid.
//
public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out int result)
{
Expand Down

0 comments on commit 8f027af

Please sign in to comment.