Skip to content

Commit

Permalink
Update README.md (#4260)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored Nov 9, 2023
1 parent d183e5f commit a57183d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ let dtf = DateTimeFormatter::try_new(&locale!("es").into(), options)
let date = DateTime::try_new_iso_datetime(2020, 9, 12, 12, 35, 0).expect("datetime should be valid");
let date = date.to_any();

let formatted_date = dtf.format(&date).expect("formatting should succeed");
let formatted_date = dtf.format_to_string(&date).expect("formatting should succeed");
assert_eq!(
formatted_date.to_string(),
formatted_date,
"12 de septiembre de 2020, 12:35:00"
);
```
Expand Down

0 comments on commit a57183d

Please sign in to comment.