Skip to content

Commit 9aca6a9

Browse files
committed
Remove links to feature gated functions
The `crate::encode`, `crate::decode`, and `Hrp::to_lowercase` functions are feature gated on "alloc" so these links break builds that do not enable the feature. Just use code ticks instead.
1 parent 091187e commit 9aca6a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//!
1414
//! - If you are doing segwit stuff you likely want to use the [`segwit`] API.
1515
//! - Non-segwit stuff and you have an allocator, use the top level API. For normal usage the
16-
//! [`encode`] and [`decode`] functions should suffice. There are also various other functions for
16+
//! `encode` and `decode` functions should suffice. There are also various other functions for
1717
//! explicit control of the checksum algorithm and the case used when encoding.
1818
//! - Non-segwit stuff and you do *not* have an allocator, use the [`CheckedHrpstring`] type for
1919
//! decoding. For encoding we provide various top level functions of the form `encode*_to_fmt`.

src/primitives/hrp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ impl Hrp {
221221
/// Displays the human-readable part.
222222
///
223223
/// If an uppercase HRP was parsed during object construction then the returned string will be
224-
/// in uppercase also. For a lowercase string see [`Self::to_lowercase`].
224+
/// in uppercase also. For a lowercase string see `Self::to_lowercase`.
225225
impl fmt::Display for Hrp {
226226
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
227227
for c in self.char_iter() {

0 commit comments

Comments
 (0)