File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -904,7 +904,7 @@ pub struct RoleDefinition {
904
904
}
905
905
906
906
impl RoleDefinition {
907
- /// Create a new [RoleDefinition] with a given threshold and set of authorized [KeyID ]s.
907
+ /// Create a new [RoleDefinition] with a given threshold and set of authorized [KeyId ]s.
908
908
pub fn new ( threshold : u32 , key_ids : HashSet < KeyId > ) -> Result < Self > {
909
909
if threshold < 1 {
910
910
return Err ( Error :: IllegalArgument ( format ! ( "Threshold: {}" , threshold) ) ) ;
Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ where
744
744
745
745
/// Add a target that's loaded in from the reader. This will store the target in the repository.
746
746
///
747
- /// This will hash the file with the hash specified in [RepoBuilder::file_hash_algorithms ]. If
747
+ /// This will hash the file with the hash specified in [RepoBuilder::target_hash_algorithms ]. If
748
748
/// none was specified, the file will be hashed with [HashAlgorithm::Sha256].
749
749
pub async fn add_target < Rd > (
750
750
self ,
@@ -760,7 +760,7 @@ where
760
760
761
761
/// Add a target that's loaded in from the reader. This will store the target in the repository.
762
762
///
763
- /// This will hash the file with the hash specified in [RepoBuilder::file_hash_algorithms ]. If
763
+ /// This will hash the file with the hash specified in [RepoBuilder::target_hash_algorithms ]. If
764
764
/// none was specified, the file will be hashed with [HashAlgorithm::Sha256].
765
765
pub async fn add_target_with_custom < Rd > (
766
766
mut self ,
You can’t perform that action at this time.
0 commit comments