Skip to content

Commit

Permalink
improve docs and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 20, 2025
1 parent 7ce34a9 commit 5e7cefc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/datetime/examples/timezone_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ fn main() {
NoCalendarFormatter::try_new(prefs, fieldsets::zone::LocalizedOffsetLong).unwrap();
let non_location_formatter =
NoCalendarFormatter::try_new(prefs, fieldsets::zone::GenericLong).unwrap();
let city_formatter = NoCalendarFormatter::try_new(prefs, fieldsets::zone::ExemplarCity).unwrap();
let city_formatter =
NoCalendarFormatter::try_new(prefs, fieldsets::zone::ExemplarCity).unwrap();

let reference_date = (Date::try_new_iso(2025, 1, 1).unwrap(), Time::midnight());

Expand Down
2 changes: 1 addition & 1 deletion components/datetime/src/neo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ impl<FSet: DateTimeMarkers> DateTimeFormatter<FSet> {
}
}

/// A formatter optimized for time and time zone formatting.
/// A formatter optimized for time and time zone formatting, when a calendar is not needed.
///
/// # Examples
///
Expand Down

0 comments on commit 5e7cefc

Please # to comment.