diff --git a/src/apu.zig b/src/apu.zig index 854db35..aa478c1 100644 --- a/src/apu.zig +++ b/src/apu.zig @@ -115,7 +115,7 @@ const Wave = struct { /// Write-only /// NR30 select: io.WaveSelect, - /// NR31 + /// NR31 length: u8, /// NR32 vol: io.WaveVolume, diff --git a/src/bus/dma.zig b/src/bus/dma.zig index 9cea2b4..a7510d8 100644 --- a/src/bus/dma.zig +++ b/src/bus/dma.zig @@ -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, diff --git a/src/bus/io.zig b/src/bus/io.zig index b365004..56aba7c 100644 --- a/src/bus/io.zig +++ b/src/bus/io.zig @@ -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), diff --git a/src/scheduler.zig b/src/scheduler.zig index e94435f..52f43b8 100644 --- a/src/scheduler.zig +++ b/src/scheduler.zig @@ -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(); diff --git a/src/util.zig b/src/util.zig index f116c39..34f8ee1 100644 --- a/src/util.zig +++ b/src/util.zig @@ -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