summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorinnerviewer <innerviewer@noreply.codeberg.org>2024-11-09 13:28:43 +0000
committerinnerviewer <innerviewer@noreply.codeberg.org>2024-11-09 13:28:43 +0000
commit02bd0b20224302f315f6e4c969fbecdfbe2852e6 (patch)
tree895d46d5469558c944c11dd1b5427317ee5f459b /exercises
parent33d61cb3c9a0d7572937dea875037f0a1e817939 (diff)
parent63951df5230966b9ee20f6695d56557b73ccb45a (diff)
Merge branch 'main' into fix-consistent-naming-106
Diffstat (limited to 'exercises')
-rw-r--r--exercises/046_optionals2.zig2
-rw-r--r--exercises/105_threading2.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/046_optionals2.zig b/exercises/046_optionals2.zig
index a5436d9..b5fffbb 100644
--- a/exercises/046_optionals2.zig
+++ b/exercises/046_optionals2.zig
@@ -48,7 +48,7 @@ pub fn main() void {
// If e1 and e2 are valid pointers to elephants,
// this function links the elephants so that e1's tail "points" to e2.
fn linkElephants(e1: ?*Elephant, e2: ?*Elephant) void {
- e1.?.*.tail = e2.?;
+ e1.?.tail = e2.?;
}
// This function visits all elephants once, starting with the
diff --git a/exercises/105_threading2.zig b/exercises/105_threading2.zig
index 7ca8f5c..7e16a1c 100644
--- a/exercises/105_threading2.zig
+++ b/exercises/105_threading2.zig
@@ -39,7 +39,7 @@
// in practice. Because either you don't need the precision, or you use a
// calculator in which the number is stored as a very precise constant.
// But at some point this constant was calculated and we are doing the same
-// now.The question at this point is, how many partial values do we have
+// now. The question at this point is, how many partial values do we have
// to calculate for which accuracy?
//
// The answer is chewing, to get 8 digits after the decimal point we need