瀏覽代碼

fix router macro docs

Evan Almloff 1 年之前
父節點
當前提交
8d166cf40d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/router-macro/src/lib.rs

+ 1 - 1
packages/router-macro/src/lib.rs

@@ -26,7 +26,7 @@ mod segment;
 /// Each variant must:
 /// Each variant must:
 /// 1. Be struct-like with {}'s
 /// 1. Be struct-like with {}'s
 /// 2. Contain all of the dynamic parameters of the current and nested routes
 /// 2. Contain all of the dynamic parameters of the current and nested routes
-/// 3. Have a #[route("route")] attribute
+/// 3. Have a `#[route("route")]` attribute
 ///
 ///
 /// Route Segments:
 /// Route Segments:
 /// 1. Static Segments: "/static"
 /// 1. Static Segments: "/static"