about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-18 02:22:41 +0000
committerbors <bors@rust-lang.org>2023-05-18 02:22:41 +0000
commitcf182b9f4327194e9636a2ec8ddb1d246815a162 (patch)
tree48ef3068ac6b30decf0750f613982a4d62270b96
parent9cd483d5c915893dd675e43dc2c9945d513313bb (diff)
parentae40b7f8cc261832862b407b7772c2798236db95 (diff)
downloadrust-cf182b9f4327194e9636a2ec8ddb1d246815a162.tar.gz
rust-cf182b9f4327194e9636a2ec8ddb1d246815a162.zip
Auto merge of #10789 - Centri3:patch-1, r=xFrednet
fix example heading in `string_slice`

changelog: none
-rw-r--r--clippy_lints/src/strings.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/strings.rs b/clippy_lints/src/strings.rs
index 5b588e914fd..483f860a8b5 100644
--- a/clippy_lints/src/strings.rs
+++ b/clippy_lints/src/strings.rs
@@ -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..];
     /// ```