Skip to content
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

Chore: fix some typos #109259

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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));
}
}
}
Loading