diff options
| author | bors <bors@rust-lang.org> | 2022-04-09 11:58:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-09 11:58:18 +0000 |
| commit | cfd52aa0ffdb3838348b2862d39e1856fad1ad88 (patch) | |
| tree | 11ffa1a696f42e2ea255ccdfd6abd16e646465c3 | |
| parent | b029a86c6b57c6a575398d82d0a8198c6904cbfc (diff) | |
| parent | a9511482d6d22188e8097261c17c69dece9a198e (diff) | |
| download | rust-cfd52aa0ffdb3838348b2862d39e1856fad1ad88.tar.gz rust-cfd52aa0ffdb3838348b2862d39e1856fad1ad88.zip | |
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
| -rw-r--r-- | tests/ui/manual_split_once.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/manual_split_once.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/manual_split_once.fixed b/tests/ui/manual_split_once.fixed index d5113df569a..24ac364ffd9 100644 --- a/tests/ui/manual_split_once.fixed +++ b/tests/ui/manual_split_once.fixed @@ -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(); } diff --git a/tests/ui/manual_split_once.rs b/tests/ui/manual_split_once.rs index 80e02952dbd..85c0c7d6977 100644 --- a/tests/ui/manual_split_once.rs +++ b/tests/ui/manual_split_once.rs @@ -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(); } |
