From f4af7de75af3fb12f2bf831ac27f3b1850803f28 Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Tue, 21 May 2024 15:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=B3=A8=E9=87=8A=E5=86=99?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 4.variables/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/4.variables/src/main.rs b/4.variables/src/main.rs index af65d5f..f864cfa 100644 --- a/4.variables/src/main.rs +++ b/4.variables/src/main.rs @@ -2,6 +2,9 @@ // 命名格式 大写字母 + 下划线分隔 const CONST_X: u32 = 100_000; +/// 文档注释写法 +/// # 测试 +/// test fn main() { println!("常量 CONST_X 的 值为 {}", CONST_X);