Skip to content

Commit fbec3e2

Browse files
committed
1 parent f3dd384 commit fbec3e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/loops/endless_loops.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Endless Loops
22

3-
If a while loop will never end, we call that an endless loop.
3+
If a while loop will never end, we call that an endless loop[^hot].
44

55
This can happen if the condition is a constant like `while (true)`
66

@@ -26,3 +26,5 @@ while (x != 1) {
2626

2727
Many games should never really "finish" so at the very start of that sort of program it is not uncommon
2828
to see a `while (true)`.
29+
30+
[^hot]: If you run an endless loop that does nothing but loop your computer might start overheating. This is a natural part of the process and ultimately healthy for your CPU fans.

0 commit comments

Comments
 (0)