@@ -38,7 +38,7 @@ pub fn log(address: &Address) {
3838/// program associated with this address is the caller and thus authorized
3939/// to be the signer.
4040///
41- /// [`invoke_signed`]: crate::program:: invoke_signed
41+ /// [`invoke_signed`]: https://docs.rs/solana-cpi/latest/solana_cpi/fn. invoke_signed.html
4242///
4343/// The `seeds` are application-specific, and must be carefully selected to
4444/// uniquely derive accounts per application requirements. It is common to
@@ -67,11 +67,9 @@ pub fn log(address: &Address) {
6767/// generating the address on-chain. The address may or may not then be
6868/// verified by re-deriving it on-chain, depending on the requirements of
6969/// the program. This verification may be performed without the overhead of
70- /// re-searching for the bump key by using the [`create_program_address `]
70+ /// re-searching for the bump key by using the [`try_create_program_address `]
7171/// function.
7272///
73- /// [`create_program_address`]: crate::pubkey::create_program_address
74- ///
7573/// **Warning**: Because of the way the seeds are hashed there is a potential
7674/// for program address collisions for the same program id. The seeds are
7775/// hashed sequentially which means that seeds {"abcdef"}, {"abc", "def"},
@@ -87,8 +85,6 @@ pub fn log(address: &Address) {
8785/// Panics in the statistically improbable event that a bump seed could not be
8886/// found. Use [`try_find_program_address`] to handle this case.
8987///
90- /// [`try_find_program_address`]: #try_find_program_address
91- ///
9288/// Panics if any of the following are true:
9389///
9490/// - the number of provided seeds is greater than, _or equal to_, [`MAX_SEEDS`],
@@ -104,13 +100,11 @@ pub fn find_program_address(seeds: &[&[u8]], program_id: &Address) -> (Address,
104100/// [pda]: https://solana.com/docs/core/cpi#program-derived-addresses
105101///
106102/// The only difference between this method and [`find_program_address`]
107- /// is that this one returns `PubkeyError ::InvalidSeeds` in the statistically
103+ /// is that this one returns `ProgramError ::InvalidSeeds` in the statistically
108104/// improbable event that a bump seed cannot be found; or if any of
109- /// `find_program_address`'s preconditions are violated.
105+ /// [ `find_program_address`] 's preconditions are violated.
110106///
111107/// See the documentation for [`find_program_address`] for a full description.
112- ///
113- /// [`find_program_address`]: #find_program_address
114108#[ inline]
115109pub fn try_find_program_address (
116110 seeds : & [ & [ u8 ] ] ,
@@ -162,8 +156,6 @@ pub fn try_find_program_address(
162156/// Note that this function does *not* validate whether the given `seeds` are within
163157/// the valid length or not. It will return an error in case of invalid seeds length,
164158/// incurring the cost of the syscall.
165- ///
166- /// [`find_program_address`]: #find_program_address
167159#[ inline]
168160pub fn try_create_program_address (
169161 seeds : & [ & [ u8 ] ] ,
@@ -214,8 +206,6 @@ pub fn try_create_program_address(
214206///
215207/// Note that this function validates whether the given `seeds` are within the valid
216208/// length or not, returning an error without incurring the cost of the syscall.
217- ///
218- /// [`find_program_address`]: #find_program_address
219209#[ inline( always) ]
220210pub fn checked_try_create_program_address (
221211 seeds : & [ & [ u8 ] ] ,
0 commit comments