Chris Boesch
fabedb4a24
Merge pull request 'Use print alias in exercise 100_for4.zig' ( #198 ) from Zorgatone/ziglings-solutions:use-print-alias into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/198
2025-01-09 15:27:12 +00:00
Chris Boesch
b1fcca9d82
Merge pull request 'Update: 108 Labeled switch example to contain default case for exhaustion' ( #196 ) from mikkurogue/exercises:main into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/196
closes #195
2025-01-08 14:30:04 +00:00
Chris Boesch
a47dfe1f4d
Merge branch 'main' into main
2025-01-08 13:26:15 +00:00
chrboesch
90d05995b5
Update exercises/108_labeled_switch.zig
...
Fixed an error in the debug statement and made the text a bit more coherent.
Signed-off-by: chrboesch <chrboesch@noreply.codeberg.org>
2025-01-08 13:22:29 +00:00
chrboesch
54f743ba43
Update exercises/108_labeled_switch.zig
...
The sentence was slightly unclear
Signed-off-by: chrboesch <chrboesch@noreply.codeberg.org>
2025-01-08 12:18:25 +00:00
mikkurogue
87b258d0a9
Fix a typo: we need do we need to -> we need to
...
Morning delirium does not help when looking at lots of words
2025-01-07 18:00:16 +00:00
Zorgatone
6b29634279
Fix patch after print alias fix in 100_fo4.zig
2025-01-07 15:26:04 +00:00
Zorgatone
c2dcaf3099
Use print alias in exercise 100_for4.zig
2025-01-07 15:21:36 +00:00
mikkurogue
5cdaee7420
Update: Remove the 4th branch in favour of just making that the else branch
...
Probably easier to not have an "unused" branch that returns the same as the else branch in the example.
Signed-off-by: mikkurogue <mikkurogue@noreply.codeberg.org>
2025-01-07 10:15:59 +00:00
Chris Boesch
468e3d7eed
Merge pull request 'Fix typo vaild → valid' ( #197 ) from zyzzyxdonta/ziglings-exercises:fix-typo-vaild-valid into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/197
2025-01-04 23:45:10 +00:00
David Pape
26978cb2d3
Fix typo vaild → valid
2025-01-04 21:40:19 +01:00
mikkurogue
de353bcb3b
Update: 108 Labeled switch example to contain default case for exhaustion
...
Update example text to give clarity on default/exhaustive case.
Reasoning:
The input for the example will not compile if user would want to test this for the logic of a labeled switch. Due the input not being an exhaustive input but rather "any u8 integer" (for the lack of better terminology) we need to use the else branch to indicate that the default case is handled, in this case by just emulating the '4' branch, but this could return an error.InvalidCaseProvided for example.
Signed-off-by: mikkurogue <michael.lindemans@outlook.com>
2025-01-04 11:56:25 +00:00
Chris Boesch
5ed3af57ee
Merge pull request 'Updated credits' ( #192 ) from readme into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/192
2024-12-22 15:50:29 +00:00
Chris Boesch
105c98782c
Updated credits
2024-12-22 15:59:21 +01:00
Chris Boesch
f446402105
Updated credits
2024-12-22 15:52:52 +01:00
Chris Boesch
8da60edb82
Merge pull request 'Minor case-related changes.' ( #184 ) from innerviewer/exercises:fix-consistent-naming-106 into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/184
2024-11-09 22:36:35 +00:00
innerviewer
83e00872b8
Added patch file.
2024-11-09 20:36:47 +01:00
innerviewer
02bd0b2022
Merge branch 'main' into fix-consistent-naming-106
2024-11-09 13:28:43 +00:00
Chris Boesch
63951df523
Merge pull request 'Deleted unnecessary pointer.' ( #185 ) from fix-176 into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/185
2024-11-08 22:02:07 +00:00
Chris Boesch
0d9458807e
Deleted unnecessary pointer.
2024-11-08 22:48:37 +01:00
Chris Boesch
ae541a0d9c
Merge pull request 'Added SIMD.' ( #178 ) from readme into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/178
2024-11-08 21:34:21 +00:00
Chris Boesch
fb46871dab
Merge branch 'main' into readme
2024-11-08 21:34:00 +00:00
Chris Boesch
2606e53733
Merge pull request 'Added missing space after a sentence.' ( #182 ) from innerviewer/exercises:fix-typo-105 into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/182
2024-11-08 21:32:45 +00:00
innerviewer
33d61cb3c9
Minor case-related changes.
2024-11-08 13:29:44 +01:00
innerviewer
e55f8e8699
Added missing space after a sentence.
2024-11-07 22:05:00 +01:00
Chris Boesch
4d4eefa523
Merge pull request 'Fixed link to format source code.' ( #180 ) from fix-link-99 into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/180
2024-11-07 20:51:59 +00:00
Chris Boesch
37a0f42621
Fixed link to format source code.
2024-11-07 21:45:47 +01:00
Chris Boesch
97c2ea2f49
Added SIMD.
2024-11-07 15:30:13 +01:00
Chris Boesch
731a3eb0a6
Merge pull request 'vectors-addition' ( #177 ) from vectors-addition into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/177
Thank you @bgthompson for this great exercise!
2024-11-07 14:24:51 +00:00
Chris Boesch
bfed660020
Fixed formating, created patch file.
2024-11-07 15:01:59 +01:00
bgthompson
46e8fc0b61
line ending format patch attempt
2024-11-07 13:42:53 +10:00
bgthompson
8cce587d3b
added patch file for 109_vectors
2024-11-07 13:31:32 +10:00
bgthompson
75e5e53497
removed commented solution lines in vectors exercise, added ??? into lines instead
2024-11-03 11:18:18 +10:00
bgthompson
c90d6015e3
created a new exercise about vectors in zig, gave it number 109
2024-11-03 11:16:00 +10:00
Chris Boesch
150b3de299
Merge pull request 'Improved maximumNarcissism' ( #174 ) from pr173 into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/174
2024-11-02 16:13:53 +00:00
Chris Boesch
fb018d212c
Improved maximumNarcissism
2024-11-02 17:03:46 +01:00
Chris Boesch
d0d31ae73a
Merge pull request 'reuse fields' ( #173 ) from rofrol/ziglings--exercises:reuse-fields into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/173
2024-11-02 15:54:34 +00:00
Roman Frołow
530dcde3d4
patch
2024-11-02 14:38:53 +01:00
Roman Frołow
286439cddc
zero
2024-11-02 14:37:41 +01:00
Roman Frołow
f629d78268
reuse fields
2024-11-02 10:48:50 +01:00
Chris Boesch
71b4f5ea81
Merge pull request 'Fixed patch from quiz7 after text changes' ( #171 ) from quiz7 into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/171
2024-10-28 19:41:59 +00:00
Chris Boesch
8f49400aa1
Fixed patch from quiz7 after text changes
...
#Please enter the commit message for your changes. Lines starting
2024-10-28 09:40:17 +01:00
Chris Boesch
e2b20b3406
Merge pull request 'Rephrase instruction for clarity' ( #170 ) from factormystic/exercises:quiz-7-instruction-clarify into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/170
2024-10-27 15:03:25 +00:00
factormystic
02478759b4
Rephrase instruction for clarity
2024-10-26 20:43:47 +00:00
Chris Boesch
173af62d34
Merge pull request 'Deleted .devcontainer because ist was a test.' ( #165 ) from rm_devcont into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/165
2024-09-20 17:15:58 +00:00
Chris Boesch
9d1da38d38
Deleted .devcontainer because ist was a test.
2024-09-20 18:48:30 +02:00
Chris Boesch
775f5ebd29
Merge pull request 'Added Dave as initiator of Ziglings.' ( #164 ) from readme into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/164
2024-09-20 11:21:28 +00:00
Chris Boesch
96df8ba304
Added Dave as initiator of Ziglings.
2024-09-20 12:45:23 +02:00
Chris Boesch
67c824118e
Merge pull request 'Minor improvements.' ( #163 ) from patch_lbl_sw into main
...
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/163
2024-09-20 10:19:26 +00:00
Chris Boesch
d1b49f353e
Minor improvements.
2024-09-20 12:10:55 +02:00