Auto merge of #10789 - Centri3:patch-1, r=xFrednet

fix example heading in `string_slice`

changelog: none
This commit is contained in:
bors 2023-05-18 02:22:41 +00:00
commit cf182b9f43

View file

@ -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..];
/// ```