summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-11-18 05:31:19 +0800
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-11-18 05:31:19 +0800
commit465e206bfe2ab6cdcdf455a24fcac653998f98e8 (patch)
treed0f238c3af2b73305987ce82c3c208b9eeb13e68
parentdeb1a7162bc7bf24a1ea2244e0a2aa56936e3225 (diff)
Fix more spelling
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
-rw-r--r--buffered-reader/README.md2
-rw-r--r--buffered-reader/src/generic.rs2
-rw-r--r--openpgp-ffi/include/sequoia/openpgp.h2
-rw-r--r--openpgp-ffi/include/sequoia/openpgp/error.h2
-rw-r--r--openpgp/src/packet/userid/mod.rs4
-rw-r--r--openpgp/src/tpk/parser/low_level/grammar.lalrpop2
-rw-r--r--sqv/make-usage.sh2
-rw-r--r--tool/make-usage.sh2
8 files changed, 9 insertions, 9 deletions
diff --git a/buffered-reader/README.md b/buffered-reader/README.md
index d927ad21..38010105 100644
--- a/buffered-reader/README.md
+++ b/buffered-reader/README.md
@@ -31,7 +31,7 @@ objects are nested.
# Details
Because the [`BufRead`] trait doesn't provide a mechanism for the
-user to size the interal buffer, a parser can't generally be sure
+user to size the internal buffer, a parser can't generally be sure
that the internal buffer will be large enough to allow it to work
with all data in place.
diff --git a/buffered-reader/src/generic.rs b/buffered-reader/src/generic.rs
index 7b5dd540..bd5a21c6 100644
--- a/buffered-reader/src/generic.rs
+++ b/buffered-reader/src/generic.rs
@@ -150,7 +150,7 @@ impl<T: io::Read, C> Generic<T, C> {
= self.buffer.as_ref().map(|b| b.len() - self.cursor).unwrap_or(0);
if let Some(error) = error {
- // An error occured. If we have enough data to fulfill
+ // An error occurred. If we have enough data to fulfill
// the caller's request, then don't return the error.
if hard && amount > amount_buffered {
return Err(error);
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h
index 9eaa2d07..0f41d6ed 100644
--- a/openpgp-ffi/include/sequoia/openpgp.h
+++ b/openpgp-ffi/include/sequoia/openpgp.h
@@ -417,7 +417,7 @@ bool pgp_signature_key_expired(pgp_signature_t signature, pgp_key_t key,
/*/
/// Returns the PKESK's recipient.
///
-/// The return value is a reference ot a `KeyID`. The caller must not
+/// The return value is a reference to a `KeyID`. The caller must not
/// modify or free it.
/*/
pgp_keyid_t pgp_pkesk_recipient(pgp_pkesk_t pkesk);
diff --git a/openpgp-ffi/include/sequoia/openpgp/error.h b/openpgp-ffi/include/sequoia/openpgp/error.h
index 71ed9671..0691e178 100644
--- a/openpgp-ffi/include/sequoia/openpgp/error.h
+++ b/openpgp-ffi/include/sequoia/openpgp/error.h
@@ -83,7 +83,7 @@ typedef enum pgp_status {
PGP_STATUS_UNSUPPORTED_COMPRESSION_ALGORITHM = -28,
/*/
- /// Unsupport signature type.
+ /// Unsupported signature type.
/*/
PGP_STATUS_UNSUPPORTED_SIGNATURE_TYPE = -20,
diff --git a/openpgp/src/packet/userid/mod.rs b/openpgp/src/packet/userid/mod.rs
index 6f7bc62c..b4ed1432 100644
--- a/openpgp/src/packet/userid/mod.rs
+++ b/openpgp/src/packet/userid/mod.rs
@@ -782,7 +782,7 @@ mod tests {
g &= c("Foo (Bar (Baz)",
Some("Foo (Bar"), Some("Baz"), None);
- // Make sure whitespace is stipped.
+ // Make sure whitespace is stripped.
g &= c(" Name Last ( some comment ) <name@example.org>",
Some("Name Last"), Some("some comment"),
Some("name@example.org"));
@@ -818,7 +818,7 @@ mod tests {
// Make sure we can't parse non conventional User IDs.
#[test]
fn decompose_non_conventional() {
- // Emptry string is not allowed.
+ // Empty string is not allowed.
assert!(ConventionallyParsedUserID::new("").is_err());
// Likewise, only whitespace.
assert!(ConventionallyParsedUserID::new(" ").is_err());
diff --git a/openpgp/src/tpk/parser/low_level/grammar.lalrpop b/openpgp/src/tpk/parser/low_level/grammar.lalrpop
index 1f22ac17..e60af12e 100644
--- a/openpgp/src/tpk/parser/low_level/grammar.lalrpop
+++ b/openpgp/src/tpk/parser/low_level/grammar.lalrpop
@@ -132,7 +132,7 @@ OptionalSignatures: Option<Vec<Signature>> = {
}
},
- // A trust packet can go whereever a signature can go, but they
+ // A trust packet can go wherever a signature can go, but they
// are ignored.
<OptionalSignatures> TRUST,
}
diff --git a/sqv/make-usage.sh b/sqv/make-usage.sh
index bec96386..87971c5b 100644
--- a/sqv/make-usage.sh
+++ b/sqv/make-usage.sh
@@ -14,7 +14,7 @@ end_code() {
printf '```\n'
}
-dump_help() { # subcommand, indention
+dump_help() { # subcommand, indentation
if [ -z "$1" ]
then
printf "\n# Usage\n\n"
diff --git a/tool/make-usage.sh b/tool/make-usage.sh
index 73d1d3e1..7bcbfcf2 100644
--- a/tool/make-usage.sh
+++ b/tool/make-usage.sh
@@ -14,7 +14,7 @@ end_code() {
printf '```\n'
}
-dump_help() { # subcommand, indention
+dump_help() { # subcommand, indentation
if [ -z "$1" ]
then
printf "\n# Usage\n\n"