Skip to content

Commit c8853c9

Browse files
BillWagnergewarren
andauthored
Fix freshness technical error (#47724)
* Fix freshness technical error Fixes #47713 The last freshness edit incorrectly referred to `=>` as "greater than or equal", rather than as the "lambda operator". Revert that. * Update docs/csharp/whats-new/tutorials/primary-constructors.md Co-authored-by: Genevieve Warren <[email protected]> --------- Co-authored-by: Genevieve Warren <[email protected]>
1 parent 1fe914a commit c8853c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/whats-new/tutorials/primary-constructors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Consider the following code:
5656

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

59-
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.
59+
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.
6060

6161
This version of the code adds a parameterless constructor to the struct. The parameterless constructor must invoke the primary constructor, which ensures all primary constructor parameters are initialized. The primary constructor properties are accessed in a method, and the compiler creates hidden fields to represent each parameter.
6262

0 commit comments

Comments
 (0)