Skip to content

Commit e88b28f

Browse files
authored
elliptic-curve: fix doc comment in TryFrom<Scalar> for NonZeroScalar (#1922)
1 parent 5cacd65 commit e88b28f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elliptic-curve/src/macros.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ macro_rules! scalar_from_impls {
5555
}
5656
}
5757

58-
/// The constant-time alternative is available at [`$crate::NonZeroScalar<$curve>::new()`].
58+
/// The constant-time alternative is available at
59+
#[doc = concat!("[`", stringify!(elliptic_curve), "::NonZeroScalar<", stringify!($curve), ">::new()`].")]
5960
impl TryFrom<$scalar> for $crate::NonZeroScalar<$curve> {
6061
type Error = $crate::Error;
6162

0 commit comments

Comments
 (0)