aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/39_pointers.zig
diff options
context:
space:
mode:
authorDave Gauer <ratfactor@gmail.com>2021-02-15 19:32:00 -0500
committerGitHub <noreply@github.com>2021-02-15 19:32:00 -0500
commita2b6b68a255c2d050e4f53a5082c38ec810c1b24 (patch)
tree45f2eba30d72f43df60cd9b053ebaea5dfe11f18 /exercises/39_pointers.zig
parent882a6b6198148673ec97c6e38443f8e2a6a6b576 (diff)
parentbbe93b1f12ae60258a6322e8ec2212fd072b777a (diff)
Merge pull request #22 from quexxon/apply-zig-fmt
Apply `zig fmt` to exercises and generate remaining patch files
Diffstat (limited to 'exercises/39_pointers.zig')
-rw-r--r--exercises/39_pointers.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/39_pointers.zig b/exercises/39_pointers.zig
index 25b56c6..40b145c 100644
--- a/exercises/39_pointers.zig
+++ b/exercises/39_pointers.zig
@@ -3,7 +3,7 @@
//
// var foo: u8 = 5; // foo is 5
// var bar: *u8 = &foo; // bar is a pointer
-//
+//
// What is a pointer? It's a reference to a value. In this example
// bar is a reference to the memory space that current contains the
// value 5.
@@ -16,7 +16,7 @@
// &foo a reference to foo
// bar a pointer to the value at foo
// bar.* the value 5 (the dereferenced value "at" bar)
-//
+//
// We'll see why pointers are useful in a moment. For now, see if you
// can make this example work!
//
@@ -32,5 +32,5 @@ pub fn main() void {
// (See the "cheatsheet" above for ideas.)
num2 = ???;
- std.debug.print("num1: {}, num2: {}\n", .{num1, num2});
+ std.debug.print("num1: {}, num2: {}\n", .{ num1, num2 });
}