Skip to content

Commit 6688100

Browse files
Armavicadhardy
authored andcommitted
Fix syntax of some links in documentation
1 parent eda7ac5 commit 6688100

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

rand_core/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,23 @@ pub trait RngCore {
141141
/// RNGs must implement at least one method from this trait directly. In
142142
/// the case this method is not implemented directly, it can be implemented
143143
/// using `self.next_u64() as u32` or via
144-
/// [`fill_bytes`][impls::next_u32_via_fill].
144+
/// [`fill_bytes`](impls::next_u32_via_fill).
145145
fn next_u32(&mut self) -> u32;
146146

147147
/// Return the next random `u64`.
148148
///
149149
/// RNGs must implement at least one method from this trait directly. In
150150
/// the case this method is not implemented directly, it can be implemented
151-
/// via [`next_u32`][impls::next_u64_via_u32] or via
152-
/// [`fill_bytes`][impls::next_u64_via_fill].
151+
/// via [`next_u32`](impls::next_u64_via_u32) or via
152+
/// [`fill_bytes`](impls::next_u64_via_fill).
153153
fn next_u64(&mut self) -> u64;
154154

155155
/// Fill `dest` with random data.
156156
///
157157
/// RNGs must implement at least one method from this trait directly. In
158158
/// the case this method is not implemented directly, it can be implemented
159-
/// via [`next_u*`][impls::fill_bytes_via_next] or
160-
/// via [`try_fill_bytes`][RngCore::try_fill_bytes]; if this generator can
159+
/// via [`next_u*`](impls::fill_bytes_via_next) or
160+
/// via [`try_fill_bytes`](RngCore::try_fill_bytes); if this generator can
161161
/// fail the implementation must choose how best to handle errors here
162162
/// (e.g. panic with a descriptive message or log a warning and retry a few
163163
/// times).

src/distributions/exponential.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Distribution<f64> for Exp1 {
6464
/// This distribution has density function: `f(x) = lambda * exp(-lambda * x)`
6565
/// for `x > 0`.
6666
///
67-
/// Note that [`Exp1`][crate::distributions::Exp1] is an optimised implementation for `lambda = 1`.
67+
/// Note that [`Exp1`](crate::distributions::Exp1) is an optimised implementation for `lambda = 1`.
6868
///
6969
/// # Example
7070
///

0 commit comments

Comments
 (0)