Skip to content

Commit c43db37

Browse files
jagdish-15kahgoh
andauthored
Update exercises/practice/bob/.approaches/introduction.md
Co-authored-by: Kah Goh <[email protected]>
1 parent f73bf04 commit c43db37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/practice/bob/.approaches/introduction.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ class Bob {
8484
}
8585
```
8686

87-
This approach utilizes nested `if` statements and a predicate for determining if a message is a shout. For more details, refer to the [`if` Statements Approach][approach-if].
87+
This approach uses variables to avoid rechecking whether Bob is silent, shouting or questioning.
88+
For more details, refer to the [method-based `if` Statements Approach][approach-method-if].
8889

8990
## Approach: answer array
9091

0 commit comments

Comments
 (0)