kikito / inspect.lua

Human-readable representation of Lua tables
https://github.com/kikito/inspect.lua
MIT License
1.38k stars 196 forks source link

Remove redundant `escapeChar` function #18

Closed mpeterv closed 9 years ago

mpeterv commented 9 years ago

Hello! This is just a small clean-up: since string.gsub can accept a table as the third argument, controlCharsTranslation can be passed to it directly, there is no need to wrap it in a function.

kikito commented 9 years ago

Neat. I didn't realize the third param could be used that way. Thanks!