Skip to content

Commit e8384f2

Browse files
authored
fix spelling (#4069)
1 parent e4afbd4 commit e8384f2

File tree

14 files changed

+18
-18
lines changed

14 files changed

+18
-18
lines changed

examples/postgres/axum-social-with-tests/src/http/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub enum Error {
1111
/// A SQLx call returned an error.
1212
///
1313
/// The exact error contents are not reported to the user in order to avoid leaking
14-
/// information about databse internals.
14+
/// information about database internals.
1515
#[error("an internal database error occurred")]
1616
Sqlx(#[from] sqlx::Error),
1717

examples/postgres/files/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Display for PostWithAuthorQuery {
3030
async fn main() -> anyhow::Result<()> {
3131
let pool = PgPool::connect(&dotenvy::var("DATABASE_URL")?).await?;
3232

33-
// we can use a tranditional wrapper around the `query!()` macro using files
33+
// we can use a traditional wrapper around the `query!()` macro using files
3434
query_file!("queries/insert_seed_data.sql")
3535
.execute(&pool)
3636
.await?;

sqlx-cli/tests/ignored-chars/sqlx.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[migrate]
2-
# Ignore common whitespace characters (beware syntatically significant whitespace!)
2+
# Ignore common whitespace characters (beware syntactically significant whitespace!)
33
# Space, tab, CR, LF, zero-width non-breaking space (U+FEFF)
44
#
55
# U+FEFF is added by some editors as a magic number at the beginning of a text file indicating it is UTF-8 encoded,

sqlx-core/src/config/reference.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ migrations-dir = "foo/migrations"
206206
# Note that the TOML format requires double-quoted strings to process escapes.
207207
# ignored-chars = ["\r"]
208208

209-
# Ignore common whitespace characters (beware syntatically significant whitespace!)
209+
# Ignore common whitespace characters (beware syntactically significant whitespace!)
210210
# Space, tab, CR, LF, zero-width non-breaking space (U+FEFF)
211211
#
212212
# U+FEFF is added by some editors as a magic number at the beginning of a text file indicating it is UTF-8 encoded,

sqlx-core/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub enum Error {
8484
source: BoxDynError,
8585
},
8686

87-
/// Error occured while encoding a value.
87+
/// Error occurred while encoding a value.
8888
#[error("error occurred while encoding a value: {0}")]
8989
Encode(#[source] BoxDynError),
9090

sqlx-mysql/src/migrate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ CREATE TABLE IF NOT EXISTS {table_name} (
193193
migration: &'e Migration,
194194
) -> BoxFuture<'e, Result<Duration, MigrateError>> {
195195
Box::pin(async move {
196-
// Use a single transaction for the actual migration script and the essential bookeeping so we never
196+
// Use a single transaction for the actual migration script and the essential bookkeeping so we never
197197
// execute migrations twice. See https://github.com/launchbadge/sqlx/issues/1966.
198198
// The `execution_time` however can only be measured for the whole transaction. This value _only_ exists for
199199
// data lineage and debugging reasons, so it is not super important if it is lost. So we initialize it to -1
@@ -268,7 +268,7 @@ CREATE TABLE IF NOT EXISTS {table_name} (
268268
migration: &'e Migration,
269269
) -> BoxFuture<'e, Result<Duration, MigrateError>> {
270270
Box::pin(async move {
271-
// Use a single transaction for the actual migration script and the essential bookeeping so we never
271+
// Use a single transaction for the actual migration script and the essential bookkeeping so we never
272272
// execute migrations twice. See https://github.com/launchbadge/sqlx/issues/1966.
273273
let mut tx = self.begin().await?;
274274
let start = Instant::now();

sqlx-mysql/src/protocol/statement/row.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl<'de> ProtocolDecode<'de, &'de [MySqlColumn]> for BinaryRow {
1818
let header = buf.get_u8();
1919
if header != 0 {
2020
return Err(err_protocol!(
21-
"exepcted 0x00 (ROW) but found 0x{:02x}",
21+
"expected 0x00 (ROW) but found 0x{:02x}",
2222
header
2323
));
2424
}

sqlx-mysql/src/protocol/text/column.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bitflags! {
4141
/// Field is an enumeration.
4242
const ENUM = 256;
4343

44-
/// Field is an auto-incement field.
44+
/// Field is an auto-increment field.
4545
const AUTO_INCREMENT = 512;
4646

4747
/// Field is a timestamp.

sqlx-postgres/src/any.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ impl AnyConnectionBackend for PgConnection {
136136
) -> BoxFuture<'c, sqlx_core::Result<AnyStatement>> {
137137
Box::pin(async move {
138138
let statement = Executor::prepare_with(self, sql, &[]).await?;
139-
let colunn_names = statement.metadata.column_names.clone();
140-
AnyStatement::try_from_statement(statement, colunn_names)
139+
let column_names = statement.metadata.column_names.clone();
140+
AnyStatement::try_from_statement(statement, column_names)
141141
})
142142
}
143143

sqlx-postgres/src/message/sasl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl FrontendMessage for SaslInitialResponse<'_> {
4141

4242
let response_len = i32::try_from(self.response.len()).map_err(|_| {
4343
err_protocol!(
44-
"SASL Initial Response length too long for protcol: {}",
44+
"SASL Initial Response length too long for protocol: {}",
4545
self.response.len()
4646
)
4747
})?;

0 commit comments

Comments
 (0)