[2.0.76] Very minor thing, Example for order

Honktown
Smart Inserter
Smart Inserter
Posts: 1075
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[2.0.76] Very minor thing, Example for order

Post by Honktown »

Order's example looks weird. Normally, examples are given in valid lua code, or what could be reasonable to see while modding. Order doesn't usually get typed out like the example, so the example is mostly sensible, but stands out.
https://lua-api.factorio.com/2.0.76/types/Order.html

Code: Select all

-- The order of special characters can be identified by looking at a UTF-8 character list.
-- This is the order some common characters are sorted in:
"-"
"0"
"9"
"A"
"Z"
"["
"]"
"a"
"z"
-- The following order strings would be ordered thusly then:
"a"
"ab"
"azaaa"  -- "b" is sorted before "z", so "ab" comes before "az", regardless of the letters following it
"b"
"b-zzz"
"b[aaa]" -- "[" is sorted after "-" in UTF-8
"bb"  -- "b" is sorted after "[" in UTF-8
]

None of the strings have commas, and at the end there's an unmatched ] for some reason.
I have mods! I guess!
Link
Bilka
Factorio Staff
Factorio Staff
Posts: 3755
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.0.76] Very minor thing, Example for order

Post by Bilka »

Thanks for pointing this out, I moved the information out of the example into to the text for the next doc version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”