1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-11 20:35:25 +01:00

Remove some unnecessary spaces

This commit is contained in:
Bradley Pierce
2024-01-20 08:28:56 -05:00
parent db317d5446
commit 5658a04f52
3 changed files with 15 additions and 15 deletions

View File

@@ -80,7 +80,7 @@ each player's language:
The reason why `NS` exists is for cases like this: Sometimes, you want to define a list of
strings to they can be later output in a function. Like so:
local fruit = { "Apple", "Orange", "Pear" }
local fruit = {"Apple", "Orange", "Pear"}
local function return_fruit(fruit_id)
return fruit[fruit_id]
end
@@ -90,7 +90,7 @@ If you want to translate the fruit names when `return_fruit` is run, but have th
It will show the script the string without Minetest translating it. The script could be made
translatable like this:
local fruit = { NS("Apple"), NS("Orange"), NS("Pear") }
local fruit = {NS("Apple"), NS("Orange"), NS("Pear")}
local function return_fruit(fruit_id)
return S(fruit[fruit_id])
end