1
Fork 0
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:
RGBCube 2022-12-16 22:24:11 +03:00
parent abbdece86f
commit bb2031ff05

View file

@ -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)}>'