Skip to content

Commit 08525e0

Browse files
committed
ignore examples that don't compile without impl blocks
1 parent 6ff6d8e commit 08525e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/documentation/safety-comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lint for `# Safety` sections by the way.
1717

1818
[See the example on github][as_bytes_mut]
1919

20-
```rust
20+
```rust,ignore
2121
/// Converts a mutable string slice to a mutable byte slice.
2222
///
2323
/// # Safety
@@ -64,7 +64,7 @@ not check for `0` before dividing.
6464

6565
[See the example on github][split_at]
6666

67-
```rust
67+
```rust,ignore
6868
pub fn split_at(&self, mid: usize) -> (&str, &str) {
6969
// is_char_boundary checks that the index is in [0, .len()]
7070
if self.is_char_boundary(mid) {

0 commit comments

Comments
 (0)