mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-21 21:53:11 -05:00
Merge pull request 'fix: typo: % instead of @ for a builtin function' (#85) from d-hain/ziglings-exercises:094_c_math-typo-fix into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/85
This commit is contained in:
commit
27db3112f9
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.
|
// 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
|
// But if we write "765.2 % 360", it only works with float values
|
||||||
// that are known at compile time.
|
// 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
|
// 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",
|
// a C function from the standard library. In the library "math",
|
||||||
|
|
Loading…
Reference in a new issue