Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
exercises(grains): example: fully qualify
  • Loading branch information
ee7 committed Sep 21, 2023
commit 62fd8229b9117dad4a7dd014b3df755a2cb4964d
3 changes: 1 addition & 2 deletions exercises/practice/grains/.meta/example.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const std = @import("std");
const math = std.math;

pub const ChessboardError = error{IndexOutOfBounds};

Expand All @@ -12,5 +11,5 @@ pub fn square(index: usize) ChessboardError!u64 {
}

pub fn total() u64 {
return math.maxInt(u64);
return std.math.maxInt(u64);
}