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

Fix typos #79136

Merged
merged 1 commit into from
Dec 4, 2022
Merged

Fix typos #79136

merged 1 commit into from
Dec 4, 2022

Conversation

am11
Copy link
Member

@am11 am11 commented Dec 2, 2022

Also cleaned up trailing whitespaces in the changeset files.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Dec 2, 2022
@ghost
Copy link

ghost commented Dec 2, 2022

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Issue Details

Also cleaned up trailing whitespaces in the changeset files.

Author: am11
Assignees: -
Labels:

area-Meta, community-contribution

Milestone: -

@@ -14,7 +14,7 @@ namespace System.ComponentModel.Composition.Hosting
/// queryable state along with a sequence of actions necessary to complete the state when
/// the atomicComposition is no longer in danger of being rolled back. State is completed or
/// rolled back when the atomicComposition is disposed, depending on the state of the
/// CompleteOnDipose property which defaults to false. The using(...) pattern in C# is a
/// CompleteOnDispose property which defaults to false. The using(...) pattern in C# is a
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not such property (even in the initial MEF1 port a6f350f).

@andchiind
Copy link

Another frequent typo is in System.Threading.Tasks.TaskCanceledException where cancelled is always spelled with one "L", including in error messages. An example instance is: https://github.com/dotnet/runtime/blob/main/src/libraries/System.Threading.Tasks/ref/System.Threading.Tasks.Forwards.cs#L30

@am11
Copy link
Member Author

am11 commented Dec 2, 2022

TaskCanceledException

This type name is a public contract. We don't change public contracts when fixing typos in bulk.

BTW, both spellings are correct:

The simple answer to the question of ‘is it canceled or cancelled’ is “either one is fine.”

and here are some quick stats which show that this repo favors single L spelling (though both are in use):

# count occurrences: 'cancelled' vs. 'canceled'

$ git grep -i cancelled | wc -l
     580
$ git grep -i canceled | wc -l
    4477

@am11 am11 requested a review from jkotas December 2, 2022 21:53
src/coreclr/inc/cordebug.idl Outdated Show resolved Hide resolved
@am11
Copy link
Member Author

am11 commented Dec 4, 2022

CI failures are unrelated to changes:

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jkotas jkotas merged commit 3855a99 into dotnet:main Dec 4, 2022
ViktorHofer pushed a commit to dotnet/winforms that referenced this pull request Dec 5, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jan 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Meta community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants