Skip to content

Commit 4c08921

Browse files
authored
Add missing line breaks in 0020-str-pattern-pt1.md (model-checking#426)
The description for Challenge 20 did not show correctly on GitHub Pages due to missing line breaks after an enumeration. This PR adds those missing line breaks. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent f56cf20 commit 4c08921

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/src/challenges/0020-str-pattern-pt1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The following str library functions are generic over the `Pattern` trait (https:
3939
- `strip_prefix`
4040
- `strip_suffix`
4141
- `trim_end_matches`
42+
4243
These functions accept a pattern as input, then call [into_searcher](https://doc.rust-lang.org/std/str/pattern/trait.Pattern.html#tymethod.into_searcher) to create a [Searcher](https://doc.rust-lang.org/std/str/pattern/trait.Pattern.html#associatedtype.Searcher) for the pattern. They use this `Searcher` to perform their desired operations (split, find, etc.).
4344
Those functions are implemented in (library/core/src/str/mod.rs), but the core of them are the searching algorithms which are implemented in (library/core/src/str/pattern.rs).
4445

@@ -72,6 +73,7 @@ Verify the safety of the following functions in (library/core/src/str/pattern.rs
7273
- `next_match_back`
7374
- `next_reject`
7475
- `next_back_reject`
76+
7577
for the following `Searcher`s:
7678
- `CharSearcher`
7779
- `MultiCharEqSearcher`

0 commit comments

Comments
 (0)