Skip to content

Commit 4910912

Browse files
committed
refactor
- improve docs
1 parent 4b20bd1 commit 4910912

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gix-date/src/time/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ pub enum Sign {
2020
/// Various ways to describe a time format.
2121
#[derive(Debug, Clone, Copy)]
2222
pub enum Format {
23-
/// A custom format limited to what's in the
24-
/// [`format`](mod@crate::time::format) submodule.
23+
/// A custom format limited to what's in the [`format`](mod@format) submodule.
2524
Custom(CustomFormat),
2625
/// The seconds since 1970, also known as unix epoch, like `1660874655`.
2726
Unix,
@@ -34,7 +33,7 @@ pub enum Format {
3433
pub struct CustomFormat(pub(crate) &'static str);
3534

3635
impl CustomFormat {
37-
/// Create a new custom format.
36+
/// Create a new custom `format` suitable for use with the [`jiff`] crate.
3837
pub const fn new(format: &'static str) -> Self {
3938
Self(format)
4039
}

0 commit comments

Comments
 (0)