Skip to content

Commit 2da6ea7

Browse files
authored
Merge pull request MicrosoftDocs#5521 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to master to sync with https://github.com/MicrosoftDocs/visualstudio-docs (branch master)
2 parents 16175e0 + 7a0cea3 commit 2da6ea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/test/unit-testing-visual-csharp-code-in-a-store-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ All tests now pass.
278278

279279
```csharp
280280
// old code
281-
//result = result - (result*result - v)/(2*result);
281+
//estimate = estimate - (estimate * estimate - x) / (2 * estimate);
282282
// new code
283-
result = (result + v/result) / 2.0;
283+
estimate = (estimate + x/estimate) / 2.0;
284284
```
285285

286286
2. Choose **Run All** to test the refactored method and make sure that you haven't introduced a regression.

0 commit comments

Comments
 (0)