Rollup merge of #98049 - imbolc:patch-3, r=Dylan-DPC
Document an edge case of `str::split_once`
This commit is contained in:
commit
62eb97a450
1 changed files with 1 additions and 0 deletions
|
@ -1632,6 +1632,7 @@ impl str {
|
|||
///
|
||||
/// ```
|
||||
/// assert_eq!("cfg".split_once('='), None);
|
||||
/// assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
|
||||
/// assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
|
||||
/// assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue