Skip to content

Commit

Permalink
Merge pull request #1 from nrdave/fix-readme
Browse files Browse the repository at this point in the history
fix README example and module add in installing
  • Loading branch information
softprops authored May 3, 2024
2 parents 6dfcb96 + 3d5205d commit b4f49dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const std = @import("std");
const termsize = @import("termsize");
pub fn main() !void {
std.debug.println("{any}", .{ termsize.termSize(std.io.getStdOut()) });
std.debug.print(
"{any}",
.{termsize.termSize(std.io.getStdOut())},
);
}
```

Expand Down Expand Up @@ -80,7 +83,7 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
+ // 👇 add the termsize module to executable
+ exe.addModule("termsize", termsize);
+ exe.root_module.addImport("termsize", termsize);

b.installArtifact(exe);
}
Expand Down

0 comments on commit b4f49dc

Please sign in to comment.