Skip to content

Commit b8d17ed

Browse files
jsorefsyphar
authored andcommitted
Fix typos/spelling
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
1 parent 16ebd6f commit b8d17ed

File tree

20 files changed

+32
-32
lines changed

20 files changed

+32
-32
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ To run GUI tests:
113113
```
114114

115115
They use the [browser-ui-test](https://github.com/GuillaumeGomez/browser-UI-test/) framework. You
116-
can take a look at its documentation [here](https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md).
116+
can take a look at its [documentation](https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md).
117117

118118
### Pure docker-compose
119119

crates/font-awesome-as-a-crate/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ mod tests {
123123
fn it_works() {
124124
assert!(crate::svg(crate::Type::Solid, "gear").is_ok());
125125
assert!(crate::svg(crate::Type::Solid, "download").is_ok());
126-
assert!(crate::svg(crate::Type::Solid, "giberich").is_err());
126+
assert!(crate::svg(crate::Type::Solid, "gibberish").is_err());
127127
}
128128
}

crates/metadata/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl Metadata {
267267
cargo_args.push("--no-default-features".into());
268268
}
269269

270-
// Unconditionnaly set `--cfg docsrs` as it has become a de-facto way to
270+
// Unconditionally set `--cfg docsrs` as it has become a de-facto way to
271271
// distinguish docs.rs.
272272
//
273273
// See https://github.com/rust-lang/docs.rs/issues/2389.

gui-tests/tester.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function parseOptions(args) {
3131
"no_headless": false,
3232
"jobs": -1,
3333
};
34-
const correspondances = {
34+
const correspondences = {
3535
"--debug": "debug",
3636
"--show-text": "show_text",
3737
"--no-headless": "no_headless",
@@ -53,15 +53,15 @@ function parseOptions(args) {
5353
}
5454
opts["jobs"] = parseInt(args[i]);
5555
} else if (args[i - 1] !== "--file") {
56-
opts[correspondances[args[i - 1]]] = args[i];
56+
opts[correspondences[args[i - 1]]] = args[i];
5757
} else {
5858
opts["files"].push(args[i]);
5959
}
6060
} else if (args[i] === "--help") {
6161
showHelp();
6262
process.exit(0);
63-
} else if (correspondances[args[i]]) {
64-
opts[correspondances[args[i]]] = true;
63+
} else if (correspondences[args[i]]) {
64+
opts[correspondences[args[i]]] = true;
6565
} else {
6666
console.log("Unknown option `" + args[i] + "`.");
6767
console.log("Use `--help` to see the list of options");

src/bin/cratesfyi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,13 +542,13 @@ enum DatabaseSubcommand {
542542
version: Option<i64>,
543543
},
544544

545-
/// temporary commant to update the `crates.latest_version_id` field
545+
/// temporary command to update the `crates.latest_version_id` field
546546
UpdateLatestVersionId,
547547

548-
/// Updates Github/Gitlab stats for crates.
548+
/// Updates GitHub/GitLab stats for crates.
549549
UpdateRepositoryFields,
550550

551-
/// Backfill GitHub/Gitlab stats for crates.
551+
/// Backfill GitHub/GitLab stats for crates.
552552
BackfillRepositoryStats,
553553

554554
/// Updates info for a crate from the registry's API

src/cdn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use strum::EnumString;
1919
use tracing::{debug, info, instrument, warn};
2020
use uuid::Uuid;
2121

22-
/// maximum amout of parallel in-progress wildcard invalidations
22+
/// maximum amount of parallel in-progress wildcard invalidations
2323
/// The actual limit is 15, but we want to keep some room for manually
2424
/// triggered invalidations
2525
const MAX_CLOUDFRONT_WILDCARD_INVALIDATIONS: i32 = 13;

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct Config {
4141
pub(crate) github_accesstoken: Option<String>,
4242
pub(crate) github_updater_min_rate_limit: u32,
4343

44-
// Gitlab authentication
44+
// GitLab authentication
4545
pub(crate) gitlab_accesstoken: Option<String>,
4646

4747
// Access token for APIs for crates.io (careful: use
@@ -132,7 +132,7 @@ impl Config {
132132
("CRATESFYI_RUSTWIDE_WORKSPACE", "DOCSRS_RUSTWIDE_WORKSPACE"),
133133
("DOCS_RS_DOCKER", "DOCSRS_DOCKER"),
134134
("DOCS_RS_LOCAL_DOCKER_IMAGE", "DOCSRS_DOCKER_IMAGE"),
135-
("DOCS_RS_BULID_CPU_LIMIT", "DOCSRS_BULID_CPU_LIMIT"),
135+
("DOCS_RS_BUILD_CPU_LIMIT", "DOCSRS_BUILD_CPU_LIMIT"),
136136
];
137137
for (old_var, new_var) in old_vars {
138138
if std::env::var(old_var).is_ok() {

src/db/add_package.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ mod test {
10381038
}
10391039

10401040
#[test]
1041-
fn update_owner_detais() {
1041+
fn update_owner_details() {
10421042
async_wrapper(|env| async move {
10431043
let mut conn = env.async_db().await.async_conn().await;
10441044
let crate_id = initialize_crate(&mut conn, "krate").await?;
@@ -1300,7 +1300,7 @@ mod test {
13001300
}
13011301

13021302
#[test]
1303-
fn test_long_relaase_version() {
1303+
fn test_long_release_version() {
13041304
async_wrapper(|env| async move {
13051305
let mut conn = env.async_db().await.async_conn().await;
13061306

src/docbuilder/rustwide_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ mod tests {
14611461
.successful
14621462
);
14631463

1464-
// source archice exists
1464+
// source archive exists
14651465
let source_archive = source_archive_path(crate_, version);
14661466
assert!(
14671467
env.storage().exists(&source_archive)?,

src/metrics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl ServiceMetrics {
329329
// When a priority is used at least once, it would be kept in the metric and the last
330330
// value would be remembered. `pending_count_by_priority` returns only the priorities
331331
// that are currently in the queue, which means when the tasks for a priority are
332-
// finished, we wouldn't update the metric any more, which means a wrong value is
332+
// finished, we wouldn't update the metric anymore, which means a wrong value is
333333
// in the metric.
334334
//
335335
// The solution is to reset the metric, and then set all priorities again.

0 commit comments

Comments
 (0)