Skip to content

Commit ae40b7f

Browse files
authored
fix example heading in string_slice
1 parent c490974 commit ae40b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/strings.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ declare_clippy_lint! {
132132
/// Probably lots of false positives. If an index comes from a known valid position (e.g.
133133
/// obtained via `char_indices` over the same string), it is totally OK.
134134
///
135-
/// # Example
135+
/// ### Example
136136
/// ```rust,should_panic
137137
/// &"Ölkanne"[1..];
138138
/// ```

0 commit comments

Comments
 (0)