Skip to content

Commit 7a406fb

Browse files
authored
Merge pull request torvalds#670 from ojeda/missing-doc-block
doc: rust: add missing `code-block` tag
2 parents b5d158b + 0e8f3fd commit 7a406fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/rust/coding-guidelines.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ the one at:
5353

5454
This is how a well-documented Rust function may look like::
5555

56+
.. code-block:: rust
57+
5658
/// Returns the contained [`Some`] value, consuming the `self` value,
5759
/// without checking that the value is not [`None`].
5860
///

0 commit comments

Comments
 (0)