diff --git a/.env b/.env index aba142f..84f2d46 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -MDBOOK_VERSION=0.4.8 +MDBOOK_VERSION=0.4.18 MDBOOK_LINKCHECK_VERSION=0.7.4 MDBOOK_TOC_VERSION=0.6.3 diff --git a/src/SUMMARY.md b/src/SUMMARY.md index c48ccf8..16d15ba 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -42,6 +42,7 @@ - [Documentation](./documentation/summary.md) - [doc alias policy](./documentation/doc-alias-policy.md) + - [safety comments policy](./documentation/safety-comments.md) --- diff --git a/src/documentation/safety-comments.md b/src/documentation/safety-comments.md index 5cbe19d..f47544d 100644 --- a/src/documentation/safety-comments.md +++ b/src/documentation/safety-comments.md @@ -17,7 +17,7 @@ lint for `# Safety` sections by the way. [See the example on github][as_bytes_mut] -```rust +```rust,ignore /// Converts a mutable string slice to a mutable byte slice. /// /// # Safety @@ -64,7 +64,7 @@ not check for `0` before dividing. [See the example on github][split_at] -```rust +```rust,ignore pub fn split_at(&self, mid: usize) -> (&str, &str) { // is_char_boundary checks that the index is in [0, .len()] if self.is_char_boundary(mid) {