Not-Nik / raylib-zig

Manually tweaked, auto-generated raylib bindings for zig. https://github.com/raysan5/raylib
MIT License
473 stars 101 forks source link

Change never mutated vars to consts #63

Closed sunarch closed 5 months ago

sunarch commented 6 months ago

Both are fine on 0.11.0 but 0.12.0-dev raises an error on build.

Tested with the current nightly, 0.12.0-dev.1856+94c63f31f

The output is error: local variable is never mutated and note: consider using 'const' on the changed lines.

Since this does not interfere with the operation of the current version but spares a step in adjusting to the next one, I thought this was worth a PR.