mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-25 09:10:26 +00:00
fix: typo: % instead of @ for a builtin function
This commit is contained in:
parent
9ce4a7d6f0
commit
4dbd056100
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
// How could we do that? A good method is to use the modulo function.
|
||||
// But if we write "765.2 % 360", it only works with float values
|
||||
// that are known at compile time.
|
||||
// In Zig, we would use %mod(a, b) instead.
|
||||
// In Zig, we would use @mod(a, b) instead.
|
||||
//
|
||||
// Let us now assume that we cannot do this in Zig, but only with
|
||||
// a C function from the standard library. In the library "math",
|
||||
|
|
Loading…
Reference in a new issue