Skip to content

Commit 7348b07

Browse files
committed
Fix zeroize method link
1 parent 73f98fc commit 7348b07

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ assert_ne!(
154154
- `drop`: an item-level option which implements [`Drop`](https://doc.rust-lang.org/core/ops/trait.Drop.html) and uses
155155
[`Zeroize`] to erase all data from memory.
156156
- `fqs`: a field -level option which will use fully-qualified-syntax instead
157-
of calling the [`zeroize`] method on `self` directly. This is to avoid
158-
ambiguity between another method also called `zeroize`.
157+
of calling the [`zeroize`][`method@zeroize`] method on `self` directly.
158+
This is to avoid ambiguity between another method also called `zeroize`.
159159

160160
```rust
161161
#[derive(DeriveWhere)]
@@ -262,5 +262,5 @@ conditions.
262262
[`Default`]: https://doc.rust-lang.org/core/default/trait.Default.html
263263
[`Hash`]: https://doc.rust-lang.org/core/hash/trait.Hash.html
264264
[`Zeroize`]: https://docs.rs/zeroize/latest/zeroize/trait.Zeroize.html
265-
[`zeroize`]: https://docs.rs/zeroize/latest/zeroize/trait.Zeroize.html#tymethod.zeroize
265+
[`method@zeroize`]: https://docs.rs/zeroize/latest/zeroize/trait.Zeroize.html#tymethod.zeroize
266266
[#27]: https://github.com/ModProg/derive-where/issues/27

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@
172172
//! - `drop`: an item-level option which implements [`Drop`] and uses
173173
//! [`Zeroize`] to erase all data from memory.
174174
//! - `fqs`: a field -level option which will use fully-qualified-syntax instead
175-
//! of calling the [`zeroize`] method on `self` directly. This is to avoid
176-
//! ambiguity between another method also called `zeroize`.
175+
//! of calling the [`zeroize`][`method@zeroize`] method on `self` directly.
176+
//! This is to avoid ambiguity between another method also called `zeroize`.
177177
//!
178178
//! ```
179179
//! # #[cfg(feature = "zeroize")]
@@ -291,14 +291,14 @@
291291
//! license, shall be dual licensed as above, without any additional terms or
292292
//! conditions.
293293
//!
294-
//! [CHANGELOG]: https://github.com/ModProg/derive-where/blob/main/CHANGELOG
294+
//! [CHANGELOG]: https://github.com/ModProg/derive-where/blob/main/CHANGELOG.md
295295
//! [LICENSE-MIT]: https://github.com/ModProg/derive-where/blob/main/LICENSE-MIT
296296
//! [LICENSE-APACHE]: https://github.com/ModProg/derive-where/blob/main/LICENSE-APACHE
297297
//! [`Debug`]: core::fmt::Debug
298298
//! [`Default`]: core::default::Default
299299
//! [`Hash`]: core::hash::Hash
300300
//! [`Zeroize`]: https://docs.rs/zeroize/latest/zeroize/trait.Zeroize.html
301-
//! [`zeroize`]: https://docs.rs/zeroize/latest/zeroize/trait.Zeroize.html#tymethod.zeroize
301+
//! [`method@zeroize`]: https://docs.rs/zeroize/latest/zeroize/trait.Zeroize.html#tymethod.zeroize
302302
//! [#27]: https://github.com/ModProg/derive-where/issues/27
303303
304304
// MSRV: needed to support a lower MSRV.

0 commit comments

Comments
 (0)