chore: run zigfmt

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-04-08 02:13:58 -03:00
parent 11a034658a
commit a1008738d2
5 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

@ -479,7 +479,7 @@ pub const Duty = extern union {
raw: u8,
};
/// Read / Write
/// Read / Write
/// NRx2
pub const Envelope = extern union {
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 {
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
/// 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`
pub fn correctTitle(title: [12]u8) []const u8 {
var len = title.len;
@ -72,7 +72,7 @@ pub fn correctTitle(title: [12]u8) []const u8 {
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
///
/// e.g. POKEPIN R/S to POKEPIN R_S