Skip to content

Commit c937619

Browse files
j1010001claude
andcommitted
docs: use 'Cadence type checker' instead of 'compiler' in guard docs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ae15a1a commit c937619

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/language/control-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if let number = noNumber {
107107

108108
The guard statement is an early-exit mechanism. It asserts that a condition must be true (or an optional must be non-nil) to continue execution. If the condition is false, the mandatory `else` block runs — and that block **must** exit the current scope via `return`, `break`, `continue`, or a function that never returns (e.g., `panic`).
109109

110-
The compiler enforces this: a guard whose `else` block can fall through is a type error.
110+
The Cadence type checker enforces this: a guard whose `else` block can fall through is a type error.
111111

112112
### Basic boolean guard
113113

0 commit comments

Comments
 (0)