Fix: Correct private property access in docs

This commit is contained in:
2025-09-22 12:21:32 -07:00
parent eeb2c53111
commit 35924b34c5

View File

@@ -337,9 +337,9 @@ A Block's return behavior is designed for fluency. It implicitly returns the val
\`\`\`javascript
calculator: {
#total: 0
add: (n) { #total = #total + n } // Implicitly returns '@'
sub: (n) { #total = #total - n } // Implicitly returns '@'
get: { ^ #total } // Explicitly returns the total
add: (n) { total = total + n } // Implicitly returns '@'
sub: (n) { total = total - n } // Implicitly returns '@'
get: { ^ total } // Explicitly returns the total
}
// .add() and .sub() return the calculator, allowing the chain