Skip to content

Commit b8d17ed

Browse files
jsorefsyphar
authored andcommitted
Fix typos/spelling
Signed-off-by: Josh Soref <[email protected]>
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.

src/repositories/gitlab.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl RepositoryForge for GitLab {
9898

9999
async fn fetch_repository(&self, name: &RepositoryName) -> Result<Option<Repository>> {
100100
let project_path = format!("{}/{}", name.owner, name.repo);
101-
// Fetch the latest information from the Gitlab API.
101+
// Fetch the latest information from the GitLab API.
102102
let response: (GraphResponse<GraphProjectNode>, Option<usize>) = self
103103
.graphql(
104104
GRAPHQL_SINGLE,

src/storage/s3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use tracing::{error, warn};
2222
const PUBLIC_ACCESS_TAG: &str = "static-cloudfront-access";
2323
const PUBLIC_ACCESS_VALUE: &str = "allow";
2424

25-
// error codes to check for when trying to determaine if an error is
25+
// error codes to check for when trying to determine if an error is
2626
// a "NOT FOUND" error.
2727
// Definition taken from the S3 rust SDK,
2828
// and validated by manually testing with actual S3.

src/test/fakes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use tracing::debug;
2323

2424
/// Create a fake release in the database that failed before the build.
2525
/// This is a temporary small factory function only until we refactored the
26-
/// `FakeRelelease` and `FakeBuild` factories to be more flexible.
26+
/// `FakeRelease` and `FakeBuild` factories to be more flexible.
2727
pub(crate) async fn fake_release_that_failed_before_build(
2828
conn: &mut sqlx::PgConnection,
2929
name: &str,

src/web/cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub enum CachePolicy {
2828
/// cache for a short time in the browser & CDN.
2929
/// right now: one minute.
3030
/// Can be used when the content can be a _little_ outdated,
31-
/// while protecting agains spikes in traffic.
31+
/// while protecting against spikes in traffic.
3232
ShortInCdnAndBrowser,
3333
/// cache forever in browser & CDN.
3434
/// Valid when you have hashed / versioned filenames and every rebuild would
@@ -39,7 +39,7 @@ pub enum CachePolicy {
3939
/// this, for example after building a crate.
4040
/// Example usage: `/latest/` rustdoc pages and their redirects.
4141
ForeverInCdn,
42-
/// cache forver in the CDN, but allow stale content in the browser.
42+
/// cache forever in the CDN, but allow stale content in the browser.
4343
/// Example: rustdoc pages with the version in their URL.
4444
/// A browser will show the stale content while getting the up-to-date
4545
/// version from the origin server in the background.

src/web/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl MatchedRelease {
170170
}
171171
}
172172

173-
/// Canonicalize the the version from the request
173+
/// Canonicalize the version from the request
174174
///
175175
/// Mainly:
176176
/// * "newest"/"*" or empty -> "latest" in the URL
@@ -255,7 +255,7 @@ fn semver_match<'a, F: Fn(&Release) -> bool>(
255255
// semver `*` does not match pre-releases.
256256
// So when we only have pre-releases, `VersionReq::STAR` would lead to an
257257
// empty result.
258-
// In this case we just return the latest latest prerelase instead of nothing.
258+
// In this case we just return the latest prerelease instead of nothing.
259259
return releases.iter().find(|release| filter(release));
260260
} else {
261261
None

src/web/page/templates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl TemplateData {
7777
// dropped and we don't need to bother rendering the template
7878
if !send.is_closed() {
7979
// `.send` only fails when the receiver is dropped while we were rendering,
80-
// at which point we don't need the result any more.
80+
// at which point we don't need the result anymore.
8181
let _ = send.send(render_fn());
8282
}
8383
}

src/web/releases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ mod tests {
10271027
}
10281028

10291029
#[test]
1030-
fn search_result_can_retrive_sort_by_from_pagination() {
1030+
fn search_result_can_retrieve_sort_by_from_pagination() {
10311031
async_wrapper(|env| async move {
10321032
let mut crates_io = mockito::Server::new_async().await;
10331033
env.override_config(|config| {

src/web/rustdoc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,7 +2407,7 @@ mod test {
24072407
]
24082408
);
24092409

2410-
// test if target-redirect inludes path
2410+
// test if target-redirect includes path
24112411
let releases_response = env
24122412
.web_app()
24132413
.await
@@ -2590,7 +2590,7 @@ mod test {
25902590
);
25912591
assert!(dom
25922592
.select(r#"a[href="/optional-dep/1.2.3"] > i[class="dependencies normal"] + i"#)
2593-
.expect("shoud have optional dependency")
2593+
.expect("should have optional dependency")
25942594
.any(|el| { el.text_contents().contains("optional") }));
25952595
let dom = kuchikiki::parse_html().one(
25962596
env.web_app()
@@ -2604,7 +2604,7 @@ mod test {
26042604
.select(
26052605
r#"a[href="/crate/optional-dep/1.2.3"] > i[class="dependencies normal"] + i"#
26062606
)
2607-
.expect("shoud have optional dependency")
2607+
.expect("should have optional dependency")
26082608
.any(|el| { el.text_contents().contains("optional") }));
26092609
Ok(())
26102610
})
@@ -2845,7 +2845,7 @@ mod test {
28452845
}
28462846

28472847
#[test_case("something.js")]
2848-
#[test_case("someting.css")]
2848+
#[test_case("something.css")]
28492849
fn serve_release_specific_static_assets(name: &str) {
28502850
async_wrapper(|env| async move {
28512851
env.async_fake_release()

templates/crate/source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
</div>
102102
</div>
103103

104-
{# If the file exeeded the maximum size, display a warning #}
104+
{# If the file exceeds the maximum size, display a warning #}
105105
{%- if is_file_too_large -%}
106106
<div id="source-warning" class="pure-u-1 pure-u-sm-17-24 pure-u-md-19-24">
107107
<div class="warning">

templates/rustdoc/topbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
</li>
8181
{%- endif -%}
8282

83-
{# If a the crate has a repo url, show it #}
83+
{# If the crate has a repo url, show it #}
8484
{%- if let Some(repository_url) = krate.repository_url -%}
8585
<li class="pure-menu-item">
8686
<a href="{{ repository_url }}" class="pure-menu-link">

0 commit comments

Comments
 (0)