Skip to content

Commit d34f1cb

Browse files
separate safe/unsafe functions in challenge 22
1 parent fd6dbfe commit d34f1cb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

doc/src/challenges/0022-str-iter.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Verify the safety of [`std::str`] functions that are defined in (library/core/sr
2222

2323
### Success Criteria
2424

25-
Write and prove the contract for the safety of the following functions:
25+
Prove the safety of the following safe functions that contain unsafe code:
2626

2727

2828
| Function | Impl for |
@@ -43,6 +43,8 @@ Write and prove the contract for the safety of the following functions:
4343
|next_back| MatchesInternal|
4444
|remainder| SplitAsciiWhitespace|
4545

46+
Write and prove the contract for this unsafe function: __iterator_get_unchecked
47+
4648
The verification must be unbounded---it must hold for str of arbitrary length.
4749

4850

0 commit comments

Comments
 (0)