mirror of
https://github.com/RGBCube/bonfire.v
synced 2025-07-28 14:37:44 +00:00
Better formatting for doc
This commit is contained in:
parent
abbdece86f
commit
bb2031ff05
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ pub enum TimeFormat as u8 {
|
|||
}
|
||||
|
||||
// format returns a Discord representation of the time in the given format.
|
||||
// E.g. <t:1670178420:f> for TimeFormat.short_date_time ran on a time of 1670178420.
|
||||
// E.g. `<t:1670178420:f>` for `TimeFormat.short_date_time` ran on a time of `1670178420`.
|
||||
[inline]
|
||||
pub fn (t Time) format(format TimeFormat) string {
|
||||
return '<t:${t.unix}:${rune(format)}>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue