Page 1 of 1

Use of "true" in prototype examples

Posted: Thu Aug 01, 2024 10:17 pm
by Honktown
Came across a boolean prototype property, where the example uses "true", when true is preferred (and might be enforced boolean later?)

I request that these be changed to just true in examples, because using the "right type" makes the modding simpler.

https://lua-api.factorio.com/1.1.109/pr ... ml#upgrade
uhoh1.png
uhoh1.png (110.55 KiB) Viewed 468 times

Re: Use of "true" in prototype examples

Posted: Fri Aug 02, 2024 7:35 am
by Bilka
Yes, the special type coercion is getting removed for booleans in 2.0. So, example fixed for the next doc release, thanks for the note.