mirror of
https://github.com/RGBCube/bonfire.v
synced 2025-07-28 22:47:45 +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.
|
// 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]
|
[inline]
|
||||||
pub fn (t Time) format(format TimeFormat) string {
|
pub fn (t Time) format(format TimeFormat) string {
|
||||||
return '<t:${t.unix}:${rune(format)}>'
|
return '<t:${t.unix}:${rune(format)}>'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue