Skip to content

Commit

Permalink
add backticks in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
esheppa authored and djc committed Oct 16, 2022
1 parent f60893a commit 4182d12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/datetime/rustc_serialize.rs
Expand Up @@ -58,7 +58,7 @@ pub struct TsSeconds<Tz: TimeZone>(DateTime<Tz>);

#[allow(deprecated)]
impl<Tz: TimeZone> From<TsSeconds<Tz>> for DateTime<Tz> {
/// Pull the inner DateTime<Tz> out
/// Pull the inner `DateTime<Tz>` out
#[allow(deprecated)]
fn from(obj: TsSeconds<Tz>) -> DateTime<Tz> {
obj.0
Expand Down
2 changes: 1 addition & 1 deletion src/month.rs
Expand Up @@ -153,7 +153,7 @@ impl Month {
}

impl num_traits::FromPrimitive for Month {
/// Returns an Option<Month> from a i64, assuming a 1-index, January = 1.
/// Returns an `Option<Month>` from a i64, assuming a 1-index, January = 1.
///
/// `Month::from_i64(n: i64)`: | `1` | `2` | ... | `12`
/// ---------------------------| -------------------- | --------------------- | ... | -----
Expand Down

0 comments on commit 4182d12

Please sign in to comment.