Skip to content

Commit 1824466

Browse files
authored
Reorder paragraphs in blog post
1 parent 8030a1f commit 1824466

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

blogs/2025/next-edit-suggestions.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ Suggestions may span a single symbol, an entire line, or multiple lines, dependi
5151
## Example scenarios
5252
Copilot NES is your AI companion as you make changes that may cascade throughout your file or project, and you'll see it shine in a variety of scenarios.
5353

54-
Our development team has been self-hosting on NES, and one of our engineers remembered one of his first "aha!" moments with NES as we were putting this blog together. He was writing a condition along the lines of `if (something !== 'a' || something !== 'b')`. NES caught that this statement would always evaluate to true (thanks De Morgan's Law!) and suggested replacing `||` with `&&` to make the code valid:
55-
![NES fixing an if statement mistake](nes-de-morgan.gif)
56-
57-
The following are some more examples where NES shines.
58-
5954
**Catching and correcting mistakes:** Mistakes are a natural part of writing code, and Copilot NES is there to help catch them (sometimes before you even realize the mistake was there!).
6055

6156
NES helps with small mistakes like typos - maybe you were coding quickly in the zone, and you wrote `conts` instead of `const`:
@@ -64,6 +59,9 @@ NES helps with small mistakes like typos - maybe you were coding quickly in the
6459
NES can also help with more challenging mistakes in logic, like a return statement that should've used `<=` instead of `>`:
6560
![NES fixing a fibonacci logic mistake](nes-fib-logic.gif)
6661

62+
Our development team has been self-hosting on NES, and one of our engineers remembered one of his first "aha!" moments with NES as we were putting this blog together. He was writing a condition along the lines of `if (something !== 'a' || something !== 'b')`. NES caught that this statement would always evaluate to true (thanks De Morgan's Law!) and suggested replacing `||` with `&&` to make the code valid:
63+
![NES fixing an if statement mistake](nes-de-morgan.gif)
64+
6765
**Changing intent:** Copilot NES suggests changes that match a change in intent. For example, changing a class from `Point` to `Point3D` will lead to a suggestion to add a `z` variable to the class definition and to the distance calculation:
6866
![NES gif for updating Point to Point3D](nes-point.gif)
6967
<!-- ![NES for updating Point to Point3D](point3d-distance.png) -->

0 commit comments

Comments
 (0)