You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Manlio Perillo 6b17a18893 Ensure the exercises use the canonical format
Add the check-exercises.py tool in the new tools directory.  It is used
to check that the exercises are correctly formatted, printing on stderr
the invalid ones and the diff in the unified format.

Update the exercises that don't use the canonical zig fmt format.

Update some patches that cause the generated zig file to be incorrectly
formatted.
1 year ago
..
001_hello.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
002_std.zig Fix: Fix grammar at 002_std.zig 3 years ago
003_assignment.zig Replace "−" with "-" in Assigment 3 tutorial text 2 years ago
004_arrays.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
005_arrays2.zig Improve wording in 005 arrays2 for #93 3 years ago
006_strings.zig Revert syntax demo, add note 3 years ago
007_strings2.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
008_quiz.zig New usize explanation 008, etc. 3 years ago
009_if.zig fix: Change order to match 011_while.zig 3 years ago
010_if2.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
011_while.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
012_while2.zig add spaces 3 years ago
013_while3.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
014_while4.zig Normalize interrobangs 3 years ago
015_for.zig feat: More descriptive definition 3 years ago
016_for2.zig dev.1711 - switched to multi-object-for-loops 2 years ago
017_quiz2.zig Cleaned up some trailing whitespace 4 years ago
018_functions.zig Update 018_functions.zig 3 years ago
019_functions2.zig adding enlightenment to 019 (for #50) 3 years ago
020_quiz3.zig adds missing 'the' to intro text 2 years ago
021_errors.zig use const for variables that are never modified 3 years ago
022_errors2.zig Normalized exercise output, answers (#41) 4 years ago
023_errors3.zig Normalized exercise output, answers (#41) 4 years ago
024_errors4.zig Update 024_errors4.zig 3 years ago
025_errors5.zig Normalized exercise output, answers (#41) 4 years ago
026_hello2.zig check for dev1650 and some minor polish 2 years ago
027_defer.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
028_defer2.zig Normalize interrobangs 3 years ago
029_errdefer.zig Fix a small typo in 029_errdefer.zig. 4 years ago
030_switch.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
031_switch2.zig use const for variables that are never modified 3 years ago
032_unreachable.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
033_iferror.zig use const for variables that are never modified 3 years ago
034_quiz4.zig Update 034_quiz4.zig 3 years ago
035_enums.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
036_enums2.zig mention builtin ex coming up 3 years ago
037_structs.zig Update 037_structs.zig 3 years ago
038_structs2.zig dev.1711 - switched to multi-object-for-loops 2 years ago
039_pointers.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
040_pointers2.zig improving the explanation 1 year ago
041_pointers3.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
042_pointers4.zig Update 042_pointers4.zig 2 years ago
043_pointers5.zig Correct conventional Zig reference vs value passing re #89 2 years ago
044_quiz5.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
045_optionals.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
046_optionals2.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
047_methods.zig Merge pull request #191 from chrboesch/dev_1711 2 years ago
048_methods2.zig function made more elegant 1 year ago
049_quiz6.zig this means 3 years ago
050_no_value.zig Updated build version requirement to 0.10.0-dev.3385 2 years ago
051_values.zig unused consts now errors 3 years ago
052_slices.zig Update 052_slices.zig 3 years ago
053_slices2.zig zig fmt 3 years ago
054_manypointers.zig Removed illegal type in pointer cheatsheet 3 years ago
055_unions.zig 055 typo 3 years ago
056_unions2.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
057_unions3.zig "999 is enough for anybody" triple-zero padding (#18) 4 years ago
058_quiz7.zig Ensure the exercises use the canonical format 1 year ago
059_integers.zig Ensure the exercises use the canonical format 1 year ago
060_floats.zig writen -> written 2 years ago
061_coercions.zig remove redundant word "a" 3 years ago
062_loop_expressions.zig fix loop else clause explanation 2 years ago
063_labels.zig dev.1711 - switched to multi-object-for-loops 2 years ago
064_builtins.zig comment corrected 2 years ago
065_builtins2.zig patch because of a change in @typeInfo 2 years ago
066_comptime.zig description specified 2 years ago
067_comptime2.zig zig fmt 3 years ago
068_comptime3.zig zig fmt 3 years ago
069_comptime4.zig Ensure the exercises use the canonical format 1 year ago
070_comptime5.zig changed self parameter in connect to pointer 1 year ago
071_comptime6.zig patch because of a change in @typeInfo 2 years ago
072_comptime7.zig fix whitespace line-endings 3 years ago
073_comptime8.zig fix whitespace line-endings 3 years ago
074_comptime9.zig Fix typo in 074 comptime 9 3 years ago
075_quiz8.zig Ensure the exercises use the canonical format 1 year ago
076_sentinels.zig Update sentinel type for v0.10.0 3 years ago
077_sentinels2.zig zig fmt 3 years ago
078_sentinels3.zig Fix 076, add 077,078 sentinels and many-item pointers 3 years ago
079_quoted_identifiers.zig Remove trailing whitespace. 2 years ago
080_anonymous_structs.zig Fix typo 2 years ago
081_anonymous_structs2.zig Fix exercises 058 and 081 🔧 3 years ago
082_anonymous_structs3.zig patch because of a change in @typeInfo 2 years ago
083_anonymous_lists.zig Ensure the exercises use the canonical format 1 year ago
084_async.zig fix whitespace line-endings 3 years ago
085_async2.zig fix whitespace line-endings 3 years ago
086_async3.zig change `suspend;` to `suspend {}` 3 years ago
087_async4.zig add ex087 async 4 3 years ago
088_async5.zig No unused fn params 3 years ago
089_async6.zig zig fmt 3 years ago
090_async7.zig fix whitespace line-endings 3 years ago
091_async8.zig Added ex91 - closing in on async! 3 years ago
092_interfaces.zig Ensure the exercises use the canonical format 1 year ago
093_hello_c.zig Fix typo 2 years ago
094_c_math.zig Exercise 094: Correct spelling and grammar 1 year ago
095_for_loops.zig exercise for new for-loops 2 years ago
096_memory_allocation.zig Update 096_memory_allocation.zig 1 year ago
097_bit_manipulation.zig Update 097_bit_manipulation.zig 1 year ago
098_bit_manipulation2.zig Update 098_bit_manipulation2.zig 1 year ago
999_the_end.zig changed 'the_end' to '999_the_end' 2 years ago