We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str::split_once
1 parent 083721a commit acda886Copy full SHA for acda886
library/core/src/str/mod.rs
@@ -1632,6 +1632,7 @@ impl str {
1632
///
1633
/// ```
1634
/// assert_eq!("cfg".split_once('='), None);
1635
+ /// assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
1636
/// assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
1637
/// assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
1638
0 commit comments