summaryrefslogtreecommitdiff
path: root/exercises/075_quiz8.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/075_quiz8.zig')
-rw-r--r--exercises/075_quiz8.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/075_quiz8.zig b/exercises/075_quiz8.zig
index 12b460c..63d208b 100644
--- a/exercises/075_quiz8.zig
+++ b/exercises/075_quiz8.zig
@@ -110,7 +110,7 @@ const HermitsNotebook = struct {
}
fn checkNote(self: *HermitsNotebook, note: NotebookEntry) void {
- var existing_entry = self.getEntry(note.place);
+ const existing_entry = self.getEntry(note.place);
if (existing_entry == null) {
self.entries[self.end_of_entries] = note;
@@ -180,7 +180,7 @@ pub fn main() void {
notebook.checkNote(working_note);
while (notebook.hasNextEntry()) {
- var place_entry = notebook.getNextEntry();
+ const place_entry = notebook.getNextEntry();
for (place_entry.place.paths) |*path| {
working_note = NotebookEntry{