Skip to content

Commit

Permalink
Fixes typos and formatting in comments (#76975)
Browse files Browse the repository at this point in the history
  • Loading branch information
animalcharade committed Nov 3, 2022
1 parent aaf9c8a commit 786d631
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/libraries/System.Private.CoreLib/src/System/Nullable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
namespace System
{
// Because we have special type system support that says a boxed Nullable<T>
// can be used where a boxed<T> is use, Nullable<T> can not implement any interfaces
// at all (since T may not). Do NOT add any interfaces to Nullable!
// can be used where a boxed T is used, Nullable<T> can not implement any interfaces
// at all (since T may not).
//
// Do NOT add any interfaces to Nullable!

[Serializable]
[NonVersionable] // This only applies to field layout
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
Expand Down Expand Up @@ -96,7 +98,7 @@ public static bool Equals<T>(Nullable<T> n1, Nullable<T> n2) where T : struct
}

// If the type provided is not a Nullable Type, return null.
// Otherwise, returns the underlying type of the Nullable type
// Otherwise, return the underlying type of the Nullable type
public static Type? GetUnderlyingType(Type nullableType)
{
ArgumentNullException.ThrowIfNull(nullableType);
Expand All @@ -118,7 +120,7 @@ public static bool Equals<T>(Nullable<T> n1, Nullable<T> n2) where T : struct

if (nullableType.IsGenericType && !nullableType.IsGenericTypeDefinition)
{
// instantiated generic type only
// Instantiated generic type only
Type genericType = nullableType.GetGenericTypeDefinition();
if (object.ReferenceEquals(genericType, typeof(Nullable<>)))
{
Expand Down

0 comments on commit 786d631

Please sign in to comment.