Skip to content

Commit e4a4653

Browse files
Nakshatra SharmaNakshatra Sharma
authored andcommitted
docs: fix typos and error message in DateTimeFormat
1 parent 3d8ca6a commit e4a4653

File tree

1 file changed

+2
-2
lines changed
  • core/engine/src/builtins/intl/date_time_format

1 file changed

+2
-2
lines changed

core/engine/src/builtins/intl/date_time_format/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl DateTimeFormat {
190190
// 3. Perform ? RequireInternalSlot(dtf, [[InitializedDateTimeFormat]]).
191191
let dtf_object = object.downcast::<Self>().map_err(|_| {
192192
JsNativeError::typ()
193-
.with_message("the `this` object must be an initializedDateTimeFormat object")
193+
.with_message("the `this` object must be an initialized DateTimeFormat object")
194194
})?;
195195
let dtf_clone = dtf_object.clone();
196196
let mut dtf = dtf_object.borrow_mut();
@@ -361,7 +361,7 @@ impl ToLocalTime {
361361
pub(crate) fn to_formattable_datetime(&self) -> DateTime<Iso> {
362362
DateTime {
363363
date: Date::try_new_iso(self.year, self.month, self.day)
364-
.expect("TimeClip insures valid range."),
364+
.expect("TimeClip ensures valid range."),
365365
time: Time::try_new(self.hour, self.minute, self.second, self.subsecond)
366366
.expect("valid values"),
367367
}

0 commit comments

Comments
 (0)