summaryrefslogtreecommitdiff
path: root/exercises
AgeCommit message (Collapse)Author
2026-04-03exercise 60: added hint on correct formatmarkuxcu
2026-03-13111/112: Add exercises for packed structs/unionsJustus Klausecker
The first exercise introduces the `packed` keyword as an alternative for bitwise operations. Its main goals are establishing a solid understanding of field order and conveying the fact that packed containers are basically integers. It introduces the concept of container layouts and briefly explains the default `auto` layout before introducing the `packed` layout (but doesn't touch `extern` at all). The exercise also presents a real-world use case for packed containers, namely LZ4 frame descriptors. Furthermore it covers equality comparisons between packed containers. The second exercise talks about switch statements with packed containers and goes into some more detail on packed unions.
2026-03-09fix: oopsRobert Fry
2026-03-09update description of 050_no_value for clarityRobert Fry
2026-02-27Merge pull request 'improve grammar in 103_tokenization' (#365) from ↵Chris Boesch
pebose/exercises:improve-grammar into main Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/365
2026-02-27Merge branch 'main' into emphasize-for-loop-rangeChris Boesch
2026-02-27Merge pull request 'add commas' (#364) from ↵Chris Boesch
pebose/exercises:add-punctuations into main Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/364
2026-02-27Merge pull request 'replace deprecated `mem.indexOf` with `mem.find`' (#363) ↵Chris Boesch
from pebose/exercises:indexof-to-find into main Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/363
2026-02-27Merge pull request 'add hint that @field() works differently on types and ↵Chris Boesch
values' (#367) from pebose/exercises:add-hint-to-exercise-82 into main Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/367
2026-02-27Merge pull request 'improve comment stating 'Zig 0.10.0' @typeName change' ↵Chris Boesch
(#370) from pebose/exercises:improve-builtins2-comment-zig-0-10 into main Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/370
2026-02-27Merge pull request 'improve comment on continue expression behavior' (#369) ↵Chris Boesch
from pebose/exercises:improve-013-while3-comment into main Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/369
2026-02-27improve comment on continue expression behaviorPaul Ebose
2026-02-27improve comment stating 'Zig 0.10.0' @typeName changePaul Ebose
2026-02-27fix 068_comptime3 comment to 'std.Io.Writer.print'Paul Ebose
2026-02-27add hint that @field() works differently on types and valuesPaul Ebose
2026-02-27emphasize that the end number of a for-loop range is exclusivePaul Ebose
2026-02-27improve grammar in 103_tokenizationPaul Ebose
2026-02-27add commasPaul Ebose
2026-02-27replace deprecated `mem.indexOf` with `mem.find`Paul Ebose
2026-01-10fix: 071 update TypeInfo field case to .intArthur Solomiac
2026-01-09I/O improvementsChris Boesch
2026-01-08Change link to documentationBartShoot
It's pointing to pre-writergate documentation
2026-01-04minor typosChris Boesch
2025-12-30change io explanationChris Boesch
2025-12-28exc. 107 migratedChris Boesch
2025-12-28exc. 106 migratedChris Boesch
2025-12-28exc. 34 migratedChris Boesch
2025-12-28improved i/o explanation for exc. 26Chris Boesch
2025-12-28exc. 26 migratedChris Boesch
2025-12-27migrated build and testChris Boesch
2025-12-24Formattinggregorh
2025-12-24change back to original 'format()' sentenceGregor Hartmann
2025-12-19Update to correct line numbergregorh
Line 537 is the actual start of the documenting comment.
2025-12-19Update URL to, and function name of, fmt string documentation/commentGregor Hartmann
2025-12-14Update zig homepage example in 103Nikhil
2025-12-07restrict parameter type in 'maximumNarcissism'Castanearie
2025-12-07Added art descriptionChris Boesch
2025-11-28changed 1 to 42 for better understandingChris Boesch
2025-11-28changed 'sleep' to async I/OChris Boesch
2025-11-01pause slightly extended for faster computersChris Boesch
2025-11-01fixed more changes due to new I/O APIChris Boesch
2025-10-24Wrap comment at 80 chars in 102.Adam Wheeler
Some of the inline comments in 102 are wrapped into very short lines. This rewraps the shortest ones for readability.
2025-10-17Fixed description to decimal and scientific notationChris Boesch
2025-10-03Fixed conversion from kg to tonsChris Boesch
2025-08-24fixes some minor typosChris Boesch
2025-08-24Merge branch 'main' into test-expectChris Boesch
2025-08-11fix: 019 typo in example function, missing return typeSardorbek Imomaliev
2025-07-22Fixed 104Chris Boesch
2025-07-22Fixed 98Chris Boesch
2025-07-22Update stdout writer usage to use std.fs.FileArnold Filip