Skip to content

Commit

Permalink
Chore: fix some typos (#109259)
Browse files Browse the repository at this point in the history
  • Loading branch information
c8ef authored Oct 29, 2024
1 parent e6da8e1 commit aa5f862
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48951,7 +48951,7 @@ HRESULT GCHeap::Initialize()

// Adjust GCRegionSize based on how large each heap would be, for smaller heaps we would
// like to keep Region sizes small. We choose between 4, 2 and 1mb based on the calculations
// below (unless its configured explictly) such that there are at least 2 regions available
// below (unless its configured explicitly) such that there are at least 2 regions available
// except for the smallest case. Now the lowest limit possible is 4mb.
if (gc_region_size == 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static void GetMembersFromRegisteredType_BaseClassUnregistered_SwitchOn()
Assert.Equal(2, properties[1].GetChildProperties().Count);
Assert.Equal("Bool", properties[1].GetChildProperties()[0].Name);
// Even though C1.Class.Base is not explictely registered, we should still be able to get the properties of Base.
// Even though C1.Class.Base is not explicitly registered, we should still be able to get the properties of Base.
Assert.Equal("String", properties[1].GetChildProperties()[1].Name);
}, options).Dispose();
}
Expand All @@ -220,7 +220,7 @@ public static void GetPropertiesFromRegisteredTypeInstance()
Assert.Equal(2, properties[1].GetChildProperties().Count);
Assert.Equal("Bool", properties[1].GetChildProperties()[0].Name);
// Even though C1.Class.Base is not explictely registered, we should still be able to get the properties of Base.
// Even though C1.Class.Base is not explicitly registered, we should still be able to get the properties of Base.
Assert.Equal("String", properties[1].GetChildProperties()[1].Name);
}).Dispose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static bool TryGetErrorType(HttpResponseMessage? response, Exception? exc
private static object[]? s_boxedStatusCodes;
private static string[]? s_statusCodeStrings;

#pragma warning disable CA1859 // we explictly box here
#pragma warning disable CA1859 // we explicitly box here
// Returns a pooled object if 'value' is between 0-512,
// saving allocations for standard HTTP status codes and small port tag values.
public static object GetBoxedInt32(int value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct Y
}

[StructLayout(LayoutKind.Explicit)]
struct Y_explict
struct Y_explicit
{
[FieldOffset(0)]
BigArray b;
Expand All @@ -64,7 +64,7 @@ public static void TestLargeStructSize()
// Explicit struct of big size triggers out of memory error instead of type load exception
Assert.Throws<TypeLoadException>(() => sizeof(X_explicit));
Assert.Throws<TypeLoadException>(() => sizeof(X_non_blittable));
Assert.Throws<TypeLoadException>(() => sizeof(Y_explict));
Assert.Throws<TypeLoadException>(() => sizeof(Y_explicit));
}
}
}

0 comments on commit aa5f862

Please sign in to comment.