瀏覽代碼

docs: fix doc comment

Jonathan Kelley 3 年之前
父節點
當前提交
06d4a5640b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/router/src/components/redirect.rs

+ 1 - 1
packages/router/src/components/redirect.rs

@@ -18,7 +18,7 @@ pub struct RedirectProps<'a> {
     /// ```
     pub to: &'a str,
 
-    /// The route to link to. This can be a relative path, or a full URL.
+    /// The route to link from. This can be a relative path, or a full URL.
     ///
     /// ```rust
     /// // Absolute path