Skip to content

Commit

Permalink
Fix doc links (#202)
Browse files Browse the repository at this point in the history
* fix typo

* fix: Fix link path

* refactor: Change path specification method
  • Loading branch information
k-nasa authored and yoshuawuyts committed May 10, 2019
1 parent cc7b70c commit 48ef02e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{
///
/// Apps are built up as a combination of *state*, *endpoints* and *middleware*:
///
/// - Application state is user-defined, and is provided via the [`App:new`]
/// - Application state is user-defined, and is provided via the [`App::new`]
/// function. The state is available as a shared reference to all app endpoints.
///
/// - Endpoints provide the actual application-level code corresponding to
Expand Down
2 changes: 2 additions & 0 deletions src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use crate::{router::Router, Endpoint};
/// [`Route::at`]) to establish a route, the `Route` type can be used to
/// establish endpoints for various HTTP methods at that path. Also, using
/// `nest`, it can be used to set up a subrouter.
///
/// [`App::at`]: ./struct.App.html#method.at
pub struct Route<'a, State> {
router: &'a mut Router<State>,
path: String,
Expand Down

0 comments on commit 48ef02e

Please sign in to comment.