Skip to content

Commit ffa5b56

Browse files
Tweak loop counter variable explanation (#43141)
1 parent ab68a59 commit ffa5b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/whats-new/dotnet-9/runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ In .NET 9, the JIT compiler *automatically* transforms the first indexing patter
175175

176176
#### Loop counter variable direction
177177

178-
The 64-bit compiler now recognizes when the direction of a loop's counter variable can be flipped without affecting the program's behavior, and then performs the transformation.
178+
The 64-bit compiler now recognizes when a loop's counter variable is used only to control the number of iterations, and transforms the loop to count down instead of up.
179179

180180
In the idiomatic `for (int i = ...)` pattern, the counter variable typically increases. Consider the following example:
181181

0 commit comments

Comments
 (0)