Skip to content

Commit 3961b36

Browse files
committed
Fix doc comments
1 parent 4df8f94 commit 3961b36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tuf/src/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ pub struct RoleDefinition {
904904
}
905905

906906
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.
908908
pub fn new(threshold: u32, key_ids: HashSet<KeyId>) -> Result<Self> {
909909
if threshold < 1 {
910910
return Err(Error::IllegalArgument(format!("Threshold: {}", threshold)));

tuf/src/repo_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ where
744744

745745
/// Add a target that's loaded in from the reader. This will store the target in the repository.
746746
///
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
748748
/// none was specified, the file will be hashed with [HashAlgorithm::Sha256].
749749
pub async fn add_target<Rd>(
750750
self,
@@ -760,7 +760,7 @@ where
760760

761761
/// Add a target that's loaded in from the reader. This will store the target in the repository.
762762
///
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
764764
/// none was specified, the file will be hashed with [HashAlgorithm::Sha256].
765765
pub async fn add_target_with_custom<Rd>(
766766
mut self,

0 commit comments

Comments
 (0)