Skip to content

Fix freshness technical error #47724

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix freshness technical error #47724

wants to merge 1 commit into from

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Aug 4, 2025

Fixes #47713

The last freshness edit incorrectly referred to => as "greater than or equal", rather than as the "lambda operator".

Revert that.


Internal previews

📄 File 🔗 Preview link
docs/csharp/whats-new/tutorials/primary-constructors.md Declare primary constructors for classes and structs

Fixes #47713

The last freshness edit incorrectly referred to `=>` as "greater than or equal", rather than as the "lambda operator". 

Revert that.
@BillWagner BillWagner requested a review from a team as a code owner August 4, 2025 16:16
@dotnetrepoman dotnetrepoman bot added this to the August 2025 milestone Aug 4, 2025
@BillWagner BillWagner requested a review from tdykstra August 4, 2025 16:16
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

Seemed weird to have the parentheses in the middle of the definition.

@@ -56,7 +56,7 @@ Consider the following code:

:::code source="./snippets/primary-constructors/Distance.cs" id="MutableStruct":::

In this example, the `Translate` method changes the `dx` and `dy` components, which requires the `Magnitude` and `Direction` properties be computed when accessed. The greater than or equal to (`=>`) operator designates an expression-bodied `get` accessor, whereas the equal to (`=`) operator designates an initializer.
In this example, the `Translate` method changes the `dx` and `dy` components, which requires the `Magnitude` and `Direction` properties be computed when accessed. The lambda (`=>`) operator designates an expression-bodied `get` accessor, whereas the equal to (`=`) operator designates an initializer.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
In this example, the `Translate` method changes the `dx` and `dy` components, which requires the `Magnitude` and `Direction` properties be computed when accessed. The lambda (`=>`) operator designates an expression-bodied `get` accessor, whereas the equal to (`=`) operator designates an initializer.
In this example, the `Translate` method changes the `dx` and `dy` components, which requires the `Magnitude` and `Direction` properties be computed when accessed. The lambda operator (`=>`) designates an expression-bodied `get` accessor, whereas the equal-to operator (`=`) designates an initializer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect operator naming in primary constructors documentation
2 participants