Fix typos (#599)

* Fix typos

* Fix typos in excluded files
This commit is contained in:
Viktor Szépe
2024-07-08 15:28:32 +02:00
committed by GitHub
parent 4164598ac2
commit 82f7311a4d
20 changed files with 30 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ if specialuse_exists "dingleberry" {
}
if specialuse_exists "archive" {
error "A non-existant special-use exists.";
error "A non-existent special-use exists.";
}
# MailboxId tests

View File

@@ -1,4 +1,4 @@
expect REPLYTO_UNPARSEABLE
expect REPLYTO_UNPARSABLE
Reply-to: hello

View File

@@ -180,7 +180,7 @@ pub async fn test(params: &mut JMAPTest) {
.await
.unwrap();
// John shoud have ReadItems access to Inbox
// John should have ReadItems access to Inbox
assert_eq!(
john_client
.set_default_account_id(&jane_id.to_string())

View File

@@ -498,7 +498,7 @@ impl SmtpConnection {
pub trait AssertResult: Sized {
fn assert_contains(self, text: &str) -> Self;
fn assert_count(self, text: &str, occurences: usize) -> Self;
fn assert_count(self, text: &str, occurrences: usize) -> Self;
fn assert_equals(self, text: &str) -> Self;
}
@@ -512,12 +512,12 @@ impl AssertResult for Vec<String> {
panic!("Expected response to contain {:?}, got {:?}", text, self);
}
fn assert_count(self, text: &str, occurences: usize) -> Self {
fn assert_count(self, text: &str, occurrences: usize) -> Self {
assert_eq!(
self.iter().filter(|l| l.contains(text)).count(),
occurences,
occurrences,
"Expected {} occurrences of {:?}, found {}.",
occurences,
occurrences,
text,
self.iter().filter(|l| l.contains(text)).count()
);

View File

@@ -290,7 +290,7 @@ async fn dmarc() {
.await;
qr.assert_no_events();
// Messagess passing DMARC should be accepted
// Messages passing DMARC should be accepted
session
.send_message(
"bill@example.com",

View File

@@ -303,7 +303,7 @@ async fn mail() {
assert_eq!(session.data.future_release, 10);
session.rset().await;
// Test FUTURERELEASE extension with invalud HOLDUNTIL value
// Test FUTURERELEASE extension with invalid HOLDUNTIL value
session
.ingest(format!("MAIL FROM:<jane@foobar.org> HOLDUNTIL={}\r\n", now + 99999).as_bytes())
.await

View File

@@ -220,7 +220,7 @@ async fn lookup_sql() {
// External domain
session.rcpt_to("user@otherdomain.org", "550 5.1.2").await;
// Non-existant user
// Non-existent user
session.rcpt_to("jack@foobar.org", "550 5.1.2").await;
// Valid users