Skip to content

Commit

Permalink
zig: use "const" for variables that are never mutated (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 authored Nov 21, 2023
1 parent 1ccb465 commit 7845de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fiat-zig/build.zig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inversion/zig/build.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");

pub fn build(b: *std.Build) void {
var main_tests = b.addTest(.{
const main_tests = b.addTest(.{
.root_source_file = .{ .path = "inversion.zig" },
});
const run_main_tests = b.addRunArtifact(main_tests);
Expand Down

0 comments on commit 7845de0

Please sign in to comment.