Skip to content

Commit

Permalink
docs/zh_CN/rust: Update the translation of coding-guidelines to 6.9-rc4
Browse files Browse the repository at this point in the history
Update to commit bc2e7d5 ("rust: support `srctree`-relative links")

Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/e83b5dd929371d42889b19750e5e0385544e170f.1714113680.git.siyanteng@loongson.cn
  • Loading branch information
sterling-teng authored and Jonathan Corbet committed May 2, 2024
1 parent f7771eb commit 88bfcfa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/translations/zh_CN/rust/coding-guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ https://commonmark.org/help/

https://doc.rust-lang.org/rustdoc/how-to-write-documentation.html

此外,内核支持通过在链接目标前添加 ``srctree/`` 来创建相对于源代码树的链接。例如:

.. code-block:: rust
//! C header: [`include/linux/printk.h`](srctree/include/linux/printk.h)
或者:

.. code-block:: rust
/// [`struct mutex`]: srctree/include/linux/mutex.h
命名
----
Expand Down

0 comments on commit 88bfcfa

Please sign in to comment.