diff --git a/sdk/decode-error/src/lib.rs b/sdk/decode-error/src/lib.rs index d225ba81a8a039..bcdf5ad5ad016d 100644 --- a/sdk/decode-error/src/lib.rs +++ b/sdk/decode-error/src/lib.rs @@ -18,8 +18,8 @@ use num_traits::FromPrimitive; /// `FromPrimitive`, it is only used correctly when the caller is certain of the /// original error type. /// -/// [`ProgramError`]: crate::program_error::ProgramError -/// [`ProgramError::Custom`]: crate::program_error::ProgramError::Custom +/// [`ProgramError`]: https://docs.rs/solana-program-error/latest/solana_program_error/enum.ProgramError.html +/// [`ProgramError::Custom`]: https://docs.rs/solana-program-error/latest/solana_program_error/enum.ProgramError.html#variant.Custom /// [`ToPrimitive`]: num_traits::ToPrimitive pub trait DecodeError { fn decode_custom_error_to_enum(custom: u32) -> Option diff --git a/sdk/program-option/src/lib.rs b/sdk/program-option/src/lib.rs index bde0e60f6e546f..6f5efe790727f0 100644 --- a/sdk/program-option/src/lib.rs +++ b/sdk/program-option/src/lib.rs @@ -882,7 +882,7 @@ impl Clone for COption { } impl Default for COption { - /// Returns [`COption::None`][COption::None]. + /// Returns [`COption::None`] /// /// # Examples /// diff --git a/sdk/src/signer/signers.rs b/sdk/src/signer/signers.rs index ad06e9ff3f3f24..5b41b5f93717f2 100644 --- a/sdk/src/signer/signers.rs +++ b/sdk/src/signer/signers.rs @@ -17,8 +17,8 @@ pub trait Signers { /// Any `T` where `T` impls `IntoIterator` yielding /// `Signer`s implements `Signers`. /// -/// This includes [&dyn Signer], [Box], -/// [&dyn Signer; N], Vec, Vec, etc. +/// This includes `[&dyn Signer]`, `[Box]`, +/// `[&dyn Signer; N]`, `Vec`, `Vec`, etc. /// /// When used as a generic function param, `&T` /// should be used instead of `T` where T: Signers, due to the `?Sized` bounds on T.