fix example heading in string_slice

This commit is contained in:
Catherine 2023-05-16 18:11:20 -05:00 committed by GitHub
parent c4909746ad
commit ae40b7f8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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