summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet')
-rw-r--r--openpgp/src/packet/header/ctb.rs2
-rw-r--r--openpgp/src/packet/key/mod.rs2
-rw-r--r--openpgp/src/packet/signature/subpacket.rs2
-rw-r--r--openpgp/src/packet/userid/rfc2822/mod.rs12
4 files changed, 9 insertions, 9 deletions
diff --git a/openpgp/src/packet/header/ctb.rs b/openpgp/src/packet/header/ctb.rs
index fbe81a9a..1a6565a4 100644
--- a/openpgp/src/packet/header/ctb.rs
+++ b/openpgp/src/packet/header/ctb.rs
@@ -109,7 +109,7 @@ impl From<PacketLengthType> for u8 {
pub struct CTBOld {
/// Common CTB fields.
common: CTBCommon,
- /// Type of length sepcifier.
+ /// Type of length specifier.
pub length_type: PacketLengthType,
}
diff --git a/openpgp/src/packet/key/mod.rs b/openpgp/src/packet/key/mod.rs
index 22636759..5cea7423 100644
--- a/openpgp/src/packet/key/mod.rs
+++ b/openpgp/src/packet/key/mod.rs
@@ -409,7 +409,7 @@ macro_rules! create_conversions {
{
/// Changes the key's parts tag to `PublicParts`.
pub fn mark_parts_public(self) -> $Key<PublicParts, R> {
- // Ideally, we'd use self.into() to do the actualy
+ // Ideally, we'd use self.into() to do the actually
// conversion. But, because P is not concrete, we get the
// following error:
//
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs
index 7d3a4c27..9d0d0c92 100644
--- a/openpgp/src/packet/signature/subpacket.rs
+++ b/openpgp/src/packet/signature/subpacket.rs
@@ -319,7 +319,7 @@ pub struct SubpacketArea {
// The subpacket area, but parsed so that the map is indexed by
// the subpacket tag, and the value corresponds to the *last*
- // occurance of that subpacket in the subpacket area.
+ // occurrence of that subpacket in the subpacket area.
//
// Since self-referential structs are a no-no, we use (start, len)
// to reference the content in the area.
diff --git a/openpgp/src/packet/userid/rfc2822/mod.rs b/openpgp/src/packet/userid/rfc2822/mod.rs
index af4a3ef5..f30a6631 100644
--- a/openpgp/src/packet/userid/rfc2822/mod.rs
+++ b/openpgp/src/packet/userid/rfc2822/mod.rs
@@ -1273,18 +1273,18 @@ mod tests {
// Try some URIs for completeness.
Test {
- input: "ssh://user:pasword@example.org/resource",
+ input: "ssh://user:password@example.org/resource",
output: Some(vec![
Component::InvalidAddress(
- e(), "ssh://user:pasword@example.org/resource".into())
+ e(), "ssh://user:password@example.org/resource".into())
])
},
Test {
- input: "(not a comment) ssh://user:pasword@example.org/resource",
+ input: "(not a comment) ssh://user:password@example.org/resource",
output: Some(vec![
Component::InvalidAddress(
- e(), "(not a comment) ssh://user:pasword@example.org/resource".into())
+ e(), "(not a comment) ssh://user:password@example.org/resource".into())
])
},
@@ -1481,11 +1481,11 @@ mod tests {
c("Willi Wonka",
Some(vec![ Component::Text("Willi Wonka".into()) ]));
- // As an extention we unquoted dots.
+ // As an extension we unquoted dots.
c("Willi A. Wonka",
Some(vec![ Component::Text("Willi A. Wonka".into()) ]));
- // As an extention we unquoted ats.
+ // As an extension we unquoted ats.
c("foo@example.org",
Some(vec![ Component::Text("foo@example.org".into()) ]));
}