Skip to content

Commit 7f19654

Browse files
SUPERCILEXmexus
authored andcommitted
Fix a bunch of typos
Signed-off-by: Alex Saveau <[email protected]>
1 parent c001a06 commit 7f19654

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Under the `web` directory you will find a binary crate that's capable of
1414
producing web-pages like
1515
[https://rust-lang.github.io/rustup-components-history/](https://rust-lang.github.io/rustup-components-history/).
1616

17-
Machine-readable information on the latests availability can be fetched on a
17+
Machine-readable information on the latest availability can be fetched on a
1818
*per-component-per-target* basis, i.e.
1919
`https://rust-lang.github.io/rustup-components-history/$target/$package` where `$target` stands for
2020
a target host architecture, like `x86_64-unknown-linux-gnu`, and `$package` stands for a package

library/src/availability.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ use std::{
88
};
99

1010
type PackageName = String;
11-
type TargetTripple = String;
11+
type TargetTriple = String;
1212
type DatesSet = HashSet<NaiveDate>;
1313
type PackagesAvailability = HashMap<PackageName, DatesSet>;
1414

1515
/// Data about packages availability in rust builds.
1616
#[derive(Debug, Default)]
1717
pub struct AvailabilityData {
18-
data: HashMap<TargetTripple, PackagesAvailability>,
18+
data: HashMap<TargetTriple, PackagesAvailability>,
1919
}
2020

2121
/// A single row in an availability table.
@@ -44,10 +44,10 @@ impl AvailabilityData {
4444
.get(&package_name)
4545
.map(|name| String::clone(name))
4646
.unwrap_or(package_name);
47-
for (target_tripple, target_info) in info.targets {
47+
for (target_triple, target_info) in info.targets {
4848
if target_info.available {
4949
self.data
50-
.entry(target_tripple.clone())
50+
.entry(target_triple.clone())
5151
.or_default()
5252
.entry(package_name.clone())
5353
.or_default()

library/src/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl<'a, Dates, DateFmt, Additional> TableBuilder<'a, Dates, DateFmt, Additional
8383
}
8484
}
8585

86-
/// Sets a format in which the dates will be formated. Here's a formatting syntax for your
86+
/// Sets a format in which the dates will be formatted. Here's a formatting syntax for your
8787
/// convenience:
8888
/// [chrono::format::strftime](https://docs.rs/chrono/0.4.6/chrono/format/strftime/index.html).
8989
///

library/src/types.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ use std::{borrow::Borrow, ops::Deref, rc::Rc};
55

66
/// Reference-counted build-target triple.
77
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
8-
pub struct TargetTripple(Rc<str>);
8+
pub struct TargetTriple(Rc<str>);
99

10-
impl fmt::Display for TargetTripple {
10+
impl fmt::Display for TargetTriple {
1111
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1212
write!(f, "{}", self.0)
1313
}
1414
}
1515

16-
impl Deref for TargetTripple {
16+
impl Deref for TargetTriple {
1717
type Target = str;
1818

1919
fn deref(&self) -> &str {
2020
&self.0
2121
}
2222
}
2323

24-
impl Borrow<str> for TargetTripple {
24+
impl Borrow<str> for TargetTriple {
2525
fn borrow(&self) -> &str {
2626
&self.0
2727
}
2828
}
2929

30-
impl<T> From<T> for TargetTripple
30+
impl<T> From<T> for TargetTriple
3131
where
3232
Rc<str>: From<T>,
3333
{
3434
fn from(t: T) -> Self {
35-
TargetTripple(t.into())
35+
TargetTriple(t.into())
3636
}
3737
}
3838

0 commit comments

Comments
 (0)