1
Fork 0
mirror of https://github.com/RGBCube/revolt.v synced 2025-07-27 17:07:45 +00:00

Better formatting and rename id_holder.v to id.v

This commit is contained in:
RGBCube 2022-12-16 22:23:30 +03:00
parent 6e2ea77d76
commit 5dec948e80
2 changed files with 1 additions and 1 deletions

View file

@ -18,7 +18,7 @@ pub enum TimeFormat as u8 {
}
// format returns a Revolt 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)}>'