chore: run zigfmt

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:12:32 -03:00
parent ed896d976d
commit b6d2084c96
5 changed files with 7 additions and 7 deletions

View File

@ -115,7 +115,7 @@ const Wave = struct {
/// Write-only /// Write-only
/// NR30 /// NR30
select: io.WaveSelect, select: io.WaveSelect,
/// NR31 /// NR31
length: u8, length: u8,
/// NR32 /// NR32
vol: io.WaveVolume, vol: io.WaveVolume,

View File

@ -46,7 +46,7 @@ fn DmaController(comptime id: u2) type {
/// Note: Use writeControl instead of manipulating cnt directly. /// Note: Use writeControl instead of manipulating cnt directly.
cnt: DmaControl, cnt: DmaControl,
/// Internal. Currrent Source Address /// Internal. Currrent Source Address
_sad: u32, _sad: u32,
/// Internal. Current Destination Address /// Internal. Current Destination Address
_dad: u32, _dad: u32,

View File

@ -479,7 +479,7 @@ pub const Duty = extern union {
raw: u8, raw: u8,
}; };
/// Read / Write /// Read / Write
/// NRx2 /// NRx2
pub const Envelope = extern union { pub const Envelope = extern union {
period: Bitfield(u8, 0, 3), period: Bitfield(u8, 0, 3),

View File

@ -55,7 +55,7 @@ pub const Scheduler = struct {
} }
} }
/// Removes the **first** scheduled event of type `needle` /// Removes the **first** scheduled event of type `needle`
pub fn removeScheduledEvent(self: *Self, needle: EventKind) void { pub fn removeScheduledEvent(self: *Self, needle: EventKind) void {
var it = self.queue.iterator(); var it = self.queue.iterator();

View File

@ -56,9 +56,9 @@ pub fn intToBytes(comptime T: type, value: anytype) [@sizeOf(T)]u8 {
} }
/// The Title from the GBA Cartridge may be null padded to a maximum /// The Title from the GBA Cartridge may be null padded to a maximum
/// length of 12 bytes. /// length of 12 bytes.
/// ///
/// This function returns a slice of everything just before the first /// This function returns a slice of everything just before the first
/// `\0` /// `\0`
pub fn correctTitle(title: [12]u8) []const u8 { pub fn correctTitle(title: [12]u8) []const u8 {
var len = title.len; var len = title.len;
@ -72,7 +72,7 @@ pub fn correctTitle(title: [12]u8) []const u8 {
return title[0..len]; return title[0..len];
} }
/// Copies a Title and returns either an identical or similar /// Copies a Title and returns either an identical or similar
/// array consisting of ASCII that won't make any file system angry /// array consisting of ASCII that won't make any file system angry
/// ///
/// e.g. POKEPIN R/S to POKEPIN R_S /// e.g. POKEPIN R/S to POKEPIN R_S