aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index de5693d..04e19a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -105,10 +105,10 @@ impl Router {
///
/// ```rust
/// windmark::Router::new()
- /// .get("/", |_| "This is the index page!".into())
- /// .get("/test", |_| "This is a test page!".into());
+ /// .mount("/", |_| "This is the index page!".into())
+ /// .mount("/test", |_| "This is a test page!".into());
/// ```
- pub fn get(
+ pub fn mount(
&mut self,
route: &str,
handler: fn(&TcpStream) -> String,