From d84ef5c32002f597c24881f8080be1873a7765d9 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 23 Aug 2023 19:14:38 +0530 Subject: [PATCH] chore(README): rust example syntax highlighting --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b6b2d6..3340a82 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ chrono_locale = { git = "https://github.com/0x5eal/chrono-locale.git", rev = "2a Then put this in your `lib.rs` or `main.rs`: -``` +```rs use chrono::prelude::*; use chrono_locale::LocaleDate; ``` @@ -24,7 +24,7 @@ Please see ['chrono`'s documentation](https://docs.rs/chrono/). To format a chrono `Date` or `DateTime` object, you can use the `formatl` method: -``` +```rs let dt = FixedOffset::east_opt(34200) .unwrap() .with_ymd_and_hms(2001, 7, 8, 0, 34, 59)