Skip to content

Commit cfd52aa

Browse files
committed
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
2 parents b029a86 + a951148 commit cfd52aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/manual_split_once.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() {
4646

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

tests/ui/manual_split_once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() {
4646

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

0 commit comments

Comments
 (0)