Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
- improve docs
  • Loading branch information
Byron committed Oct 21, 2024
1 parent 4b20bd1 commit 4910912
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gix-date/src/time/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ pub enum Sign {
/// Various ways to describe a time format.
#[derive(Debug, Clone, Copy)]
pub enum Format {
/// A custom format limited to what's in the
/// [`format`](mod@crate::time::format) submodule.
/// A custom format limited to what's in the [`format`](mod@format) submodule.
Custom(CustomFormat),
/// The seconds since 1970, also known as unix epoch, like `1660874655`.
Unix,
Expand All @@ -34,7 +33,7 @@ pub enum Format {
pub struct CustomFormat(pub(crate) &'static str);

impl CustomFormat {
/// Create a new custom format.
/// Create a new custom `format` suitable for use with the [`jiff`] crate.
pub const fn new(format: &'static str) -> Self {
Self(format)
}
Expand Down

0 comments on commit 4910912

Please sign in to comment.