Auto merge of #8669 - kyoto7250:fix_comments_in_test_split_once, r=xFrednet

fix comments in test for split_once

This PR fixed comments in test.

`split_once` was stabilized in 1.52, so I think the comments maybe be wrong.

ref:
https://doc.rust-lang.org/std/string/struct.String.html#method.split_once

thank you in advance.

changelog: none
This commit is contained in:
bors 2022-04-09 11:58:18 +00:00
commit cfd52aa0ff
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ fn main() {
fn _msrv_1_51() {
#![clippy::msrv = "1.51"]
// `str::split_once` was stabilized in 1.16. Do not lint this
// `str::split_once` was stabilized in 1.52. Do not lint this
let _ = "key=value".splitn(2, '=').nth(1).unwrap();
}

View File

@ -46,7 +46,7 @@ fn _f(s: &str) -> Option<&str> {
fn _msrv_1_51() {
#![clippy::msrv = "1.51"]
// `str::split_once` was stabilized in 1.16. Do not lint this
// `str::split_once` was stabilized in 1.52. Do not lint this
let _ = "key=value".splitn(2, '=').nth(1).unwrap();
}