Skip to content

Commit bd69f0f

Browse files
authored
Merge pull request #34 from rust-lang/ci-fix
add safety comments section to top level summary
2 parents 90ed726 + 7642673 commit bd69f0f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MDBOOK_VERSION=0.4.8
1+
MDBOOK_VERSION=0.4.18
22
MDBOOK_LINKCHECK_VERSION=0.7.4
33
MDBOOK_TOC_VERSION=0.6.3
44

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
- [Documentation](./documentation/summary.md)
4444
- [doc alias policy](./documentation/doc-alias-policy.md)
45+
- [safety comments policy](./documentation/safety-comments.md)
4546

4647
---
4748

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)