Skip to content

Commit 77d50b1

Browse files
szepeviktordjc
authored andcommitted
Fix typos
1 parent 771c047 commit 77d50b1

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ release notes on [GitHub](https://github.com/chronotope/chrono/releases).
143143

144144
### Fixes
145145

146-
* Make Datetime arithmatic adjust their offsets after discovering their new
146+
* Make Datetime arithmetic adjust their offsets after discovering their new
147147
timestamps (@quodlibetor #337)
148148
* Put wasm-bindgen related code and dependencies behind a `wasmbind` feature
149149
gate. (@quodlibetor #335)
@@ -599,7 +599,7 @@ and replaced by 0.2.25 very shortly. Duh.)
599599

600600
### Added
601601

602-
- `Offset` is splitted into `TimeZone` (constructor) and `Offset` (storage) types.
602+
- `Offset` is split into `TimeZone` (constructor) and `Offset` (storage) types.
603603
You would normally see only the former, as the latter is mostly an implementation detail.
604604
Most importantly, `Local` now can be used to directly construct timezone-aware values.
605605

@@ -661,7 +661,7 @@ and replaced by 0.2.25 very shortly. Duh.)
661661
so we simply let it go.
662662

663663
In the case that `Time` is really required, one can use a simpler `NaiveTime`.
664-
`NaiveTime` and `NaiveDate` can be freely combined and splitted,
664+
`NaiveTime` and `NaiveDate` can be freely combined and split,
665665
and `TimeZone::from_{local,utc}_datetime` can be used to convert from/to the local time.
666666

667667
- `with_offset` method has been removed. Use `with_timezone` method instead.

src/format/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ pub enum ParseErrorKind {
422422
/// All formatting items have been read but there is a remaining input.
423423
TooLong,
424424

425-
/// There was an error on the formatting string, or there were non-supported formating items.
425+
/// There was an error on the formatting string, or there were non-supported formatting items.
426426
BadFormat,
427427

428428
// TODO: Change this to `#[non_exhaustive]` (on the enum) with the next breaking release.

src/format/parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ where
508508
}
509509

510510
/// Accepts a relaxed form of RFC3339.
511-
/// A space or a 'T' are acepted as the separator between the date and time
511+
/// A space or a 'T' are accepted as the separator between the date and time
512512
/// parts. Additional spaces are allowed between each component.
513513
///
514514
/// All of these examples are equivalent:

src/format/parsed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ impl Parsed {
536536
///
537537
/// # Errors
538538
///
539-
/// Returns `OUT_OF_RANGE` if `value` is ouside the range of an `i32`.
539+
/// Returns `OUT_OF_RANGE` if `value` is outside the range of an `i32`.
540540
///
541541
/// Returns `IMPOSSIBLE` if this field was already set to a different value.
542542
#[inline]

src/offset/local/tz_info/rule.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -589,11 +589,11 @@ impl RuleDay {
589589

590590
let week_day_of_first_month_day =
591591
(4 + days_since_unix_epoch(year, month, 1)).rem_euclid(DAYS_PER_WEEK);
592-
let first_week_day_occurence_in_month =
592+
let first_week_day_occurrence_in_month =
593593
1 + (week_day as i64 - week_day_of_first_month_day).rem_euclid(DAYS_PER_WEEK);
594594

595595
let mut month_day =
596-
first_week_day_occurence_in_month + (week as i64 - 1) * DAYS_PER_WEEK;
596+
first_week_day_occurrence_in_month + (week as i64 - 1) * DAYS_PER_WEEK;
597597
if month_day > day_in_month {
598598
month_day -= DAYS_PER_WEEK
599599
}

src/offset/local/tz_info/timezone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ impl<'a> TimeZoneRef<'a> {
252252

253253
match transition_start.cmp(&transition_end) {
254254
Ordering::Greater => {
255-
// bakwards transition, eg from DST to regular
255+
// backwards transition, eg from DST to regular
256256
// this means a given local time could have one of two possible offsets
257257
if local_leap_time < transition_end {
258258
return Ok(crate::MappedLocalTime::Single(prev));

tests/dateutils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ fn verify_against_date_command_format_local(path: &'static str, dt: NaiveDateTim
144144
let ldt = Local
145145
.from_local_datetime(&date.and_hms_opt(dt.hour(), dt.minute(), dt.second()).unwrap())
146146
.unwrap();
147-
let formated_date = format!("{}\n", ldt.format(required_format));
148-
assert_eq!(date_command_str, formated_date);
147+
let formatted_date = format!("{}\n", ldt.format(required_format));
148+
assert_eq!(date_command_str, formatted_date);
149149
}
150150

151151
#[test]

0 commit comments

Comments
 (0)