Skip to content

Commit

Permalink
Auto merge of rust-lang#10789 - Centri3:patch-1, r=xFrednet
Browse files Browse the repository at this point in the history
fix example heading in `string_slice`

changelog: none
  • Loading branch information
bors committed May 18, 2023
2 parents 9cd483d + ae40b7f commit cf182b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ declare_clippy_lint! {
/// Probably lots of false positives. If an index comes from a known valid position (e.g.
/// obtained via `char_indices` over the same string), it is totally OK.
///
/// # Example
/// ### Example
/// ```rust,should_panic
/// &"Ölkanne"[1..];
/// ```
Expand Down

0 comments on commit cf182b9

Please sign in to comment.