diff options
Diffstat (limited to 'library/src/compute/construct.rs')
| -rw-r--r-- | library/src/compute/construct.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/library/src/compute/construct.rs b/library/src/compute/construct.rs index a81c6a96..5ccefb18 100644 --- a/library/src/compute/construct.rs +++ b/library/src/compute/construct.rs @@ -188,11 +188,16 @@ cast! { /// /// ## Example /// ```example -/// #datetime( +/// #let date = datetime( /// year: 2012, /// month: 8, /// day: 3, -/// ).display() +/// ) +/// +/// #date.display() \ +/// #date.display( +/// "[day].[month].[year]" +/// ) /// ``` /// /// ## Format @@ -306,6 +311,9 @@ cast! { /// Returns the current date. /// +/// Refer to the documentation of the [`display`]($type/datetime.display) method +/// for details on how to affect the formatting of the date. +/// /// ## Example /// ```example /// Today's date is |
