Skip to content

Commit

Permalink
chore: fix doc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
connec committed Oct 17, 2023
1 parent 9d4fe39 commit 4c972d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
//! ## Error handling
//!
//! `axum` requires that middleware do not return errors, and that the errors returned by extractors
//! implement `IntoResponse`. By default, [`Error`](Error) is used by [`Layer`] and [`Tx`] to
//! implement `IntoResponse`. By default, [`Error`] is used by [`Layer`] and [`Tx`] to
//! convert errors into HTTP 500 responses, with the error's `Display` value as the response body,
//! however it's generally not a good practice to return internal error details to clients!
//!
Expand Down Expand Up @@ -154,7 +154,7 @@ pub use crate::{
/// ```
#[derive(Debug, thiserror::Error)]
pub enum Error {
/// Indicates that the [`Layer`](crate::Layer) middleware was not installed.
/// Indicates that the [`Layer`] middleware was not installed.
#[error("required extension not registered; did you add the axum_sqlx_tx::Layer middleware?")]
MissingExtension,

Expand Down

0 comments on commit 4c972d6

Please sign in to comment.