Skip to content

Commit

Permalink
Link to the relevant sections of the guide. (LukeMathWalker#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker authored Mar 24, 2024
1 parent 5be2a7f commit e086382
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions libs/pavex/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ use std::fmt;

/// Pavex's error type: an opaque wrapper around the concrete error type
/// return by your components (e.g. request handlers, constructors, etc.).
/// It is primarily used as an input parameter for
/// [error observers](https://pavex.dev/docs/guide/errors/error_observers/).
/// It is used as an input parameter by
/// [error observers](https://pavex.dev/docs/guide/errors/error_observers/) and
/// [universal error handlers](https://pavex.dev/docs/guide/errors/error_handlers/#universal).
///
/// # Guide
///
Expand Down
6 changes: 4 additions & 2 deletions libs/pavex/src/middleware.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
//! Middleware types and utilities.
//!
//! See [`Blueprint::wrap`] and [`Next`] for more information.
//! # Guide
//!
//! [`Blueprint::wrap`]: crate::blueprint::Blueprint::wrap
//! Check out the ["Middleware"](https://pavex.dev/docs/guide/middleware)
//! section of Pavex's guide for a thorough introduction to middlewares
//! in Pavex applications.
use std::future::IntoFuture;

use crate::response::{IntoResponse, Response};
Expand Down

0 comments on commit e086382

Please sign in to comment.