Fix a line in the docs about string.format
This commit is contained in:
@@ -231,7 +231,7 @@ The lua library function luaL_tolstring converts a lua object into a string, no
|
||||
|
||||
We don't use luaL_tolstring in the Luprex codebase. However, the luaL_tolstring function is used from within the lua runtime in three different places:
|
||||
|
||||
- In the lua function *string.format*. This is still a serious issue. If you use the "%s" formatting directive, and then pass in a table, it will format it as above, which is against the determinism rules.
|
||||
- In the lua function *string.format*. This is no longer an issue. We wrote our own version of format which replaces the built-in version. Our implementation doesn't use luaL_tostring.
|
||||
- In the builtin function *tostring*. This is no longer an issue. We wrote our own version of tostring which replaces the built-in version. Our implementation doesn't use luaL_tolstring.
|
||||
- In the eris runtime. It is using luaL_tolstring to generate keys that become part of an associative map.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user