Skip to content

Commit 3d0e0c7

Browse files
committed
fix doc links
1 parent 58daacc commit 3d0e0c7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

tide-cookies/src/middleware.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ use tide_core::{
1010

1111
/// Middleware to work with cookies.
1212
///
13-
/// [`CookiesMiddleware`] along with [`ContextExt`](crate::data::ContextExt) provide smooth
13+
/// [`CookiesMiddleware`] along with [`ContextExt`] provide smooth
1414
/// access to request cookies and setting/removing cookies from response. This leverages the
1515
/// [cookie](https://crates.io/crates/cookie) crate.
1616
/// This middleware parses cookies from request and caches them in the extension. Once the request
1717
/// is processed by endpoints and other middlewares, all the added and removed cookies are set on
1818
/// on the response. You will need to add this middle before any other middlewares that might need
1919
/// to access Cookies.
20+
///
21+
/// [`CookiesMiddleware`]: crate::middleware::CookiesMiddleware
22+
/// [`ContextExt`]: crate::data::ContextExt
2023
#[derive(Clone, Default, Debug)]
2124
pub struct CookiesMiddleware {}
2225

tide-core/src/app.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ impl<State: Send + Sync + 'static> App<State> {
220220
///
221221
/// Middleware can only be added at the "top level" of an application,
222222
/// and is processed in the order in which it is applied.
223+
///
224+
/// [`Middleware`]: crate::middleware::Middleware
223225
pub fn middleware(&mut self, m: impl Middleware<State>) -> &mut Self {
224226
self.middleware.push(Arc::new(m));
225227
self
@@ -270,6 +272,8 @@ impl<State: Send + Sync + 'static> App<State> {
270272
///
271273
/// This type is useful only in conjunction with the [`HttpService`] trait,
272274
/// i.e. for hosting a Tide app within some custom HTTP server.
275+
///
276+
/// [`HttpService`]: http_service::HttpService
273277
#[derive(Clone)]
274278
#[allow(missing_debug_implementations)]
275279
pub struct Server<State> {

tide-core/src/route.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ impl<'a, State: 'static> Route<'a, State> {
3737
}
3838
}
3939

40-
/// Add endpoint nested routes as in the example
41-
///```rust, no_run
42-
/// router.at("/a").nest(|router| {
43-
/// router.at("/").get(async move |_| "/a");
44-
/// router.at("/b").get(async move |_| "/a/b");
45-
///```
40+
/// Add endpoint nested routes
4641
pub fn nest(&mut self, f: impl FnOnce(&mut Route<'a, State>)) -> &mut Self {
4742
f(self);
4843
self

0 commit comments

Comments
 (0)