Compare commits

..

No commits in common. "63951df5230966b9ee20f6695d56557b73ccb45a" and "4d4eefa523a70b477ae981ce9b0eb9dfd5849e8c" have entirely different histories.

4 changed files with 4 additions and 5 deletions

View file

@ -232,7 +232,6 @@ Zig Core Language
* [X] Working with C
* [X] Threading
* [x] Labeled switch
* [x] Vector operations (SIMD)
Zig Standard Library

View file

@ -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

View file

@ -1,5 +1,5 @@
--- exercises/046_optionals2.zig 2024-11-08 22:46:25.592875338 +0100
+++ answers/046_optionals2.zig 2024-11-08 22:46:20.699447951 +0100
--- exercises/046_optionals2.zig 2024-09-04 20:51:36.766783971 +0200
+++ answers/046_optionals2.zig 2024-09-04 20:51:01.389400985 +0200
@@ -22,7 +22,7 @@
const Elephant = struct {