Skip to content

Commit

Permalink
Update exercises/practice/bob/.approaches/method-based/content.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kah Goh <[email protected]>
  • Loading branch information
jagdish-15 and kahgoh authored Dec 26, 2024
1 parent 498ae46 commit ff35ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/bob/.approaches/method-based/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In this approach, the different conditions for Bob’s responses are separated i

This approach simplifies the main method `hey` by breaking down each response condition into helper methods:

1. **Trimming the Input**:
### Trimming the Input

Check failure on line 44 in exercises/practice/bob/.approaches/method-based/content.md

View workflow job for this annotation

GitHub Actions / Lint Markdown files

Headings should be surrounded by blank lines

exercises/practice/bob/.approaches/method-based/content.md:44 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "### Trimming the Input"] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md022.md
The `input` is trimmed using the `String` [`trim()`][trim] method to remove any leading or trailing whitespace. This helps to accurately detect if the input is empty and should prompt a `"Fine. Be that way!"` response.

2. **Delegating to Helper Methods**:

Check failure on line 47 in exercises/practice/bob/.approaches/method-based/content.md

View workflow job for this annotation

GitHub Actions / Lint Markdown files

Ordered list item prefix

exercises/practice/bob/.approaches/method-based/content.md:47:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/2/3] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md029.md
Expand Down

0 comments on commit ff35ee4

Please sign in to comment.