Skip to content

Commit

Permalink
Fix links
Browse files Browse the repository at this point in the history
Fix the links by doing:

- Use correct number, 350 not 359.
- Make rustdoc render the links correctly, currently they are being
  rendered as the URL because it requires whitespace between body of
  rustdoc and link target.
  • Loading branch information
tcharding committed Jan 12, 2024
1 parent d432a4f commit 9f7c21a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/hrp.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: MIT

//! Re-exports the hrp types from [`primitives::hrp`] to make importing ergonomic for the top level APIs.
//!
//! [`primitives::hrp`]: crate::primitives::hrp

#[doc(inline)]
pub use crate::primitives::hrp::{Hrp, BC, BCRT, TB};
2 changes: 1 addition & 1 deletion src/primitives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub enum Bech32 {}

/// The bech32m checksum algorithm, defined in [BIP-350].
///
/// [BIP-350]: <https://github.com/bitcoin/bips/blob/master/bip-0359.mediawiki>
/// [BIP-350]: <https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki>
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Bech32m {}

Expand Down

0 comments on commit 9f7c21a

Please sign in to comment.