diff options
| author | Abdou-31 <abdou31.coding@gmail.com> | 2022-11-09 17:57:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-09 11:57:19 -0500 |
| commit | d1b80b462eaa74a8640cf132c21f74e4f924052a (patch) | |
| tree | d5804214487f339643ab6cdf74fbd113cb02cb2b /doc | |
| parent | 6191bafcadc21277be5527ed1ac05f7902e710ad (diff) | |
| download | minetest-d1b80b462eaa74a8640cf132c21f74e4f924052a.tar.xz | |
Fix typos and en_US/en_GB inconsistency in various files (#12902)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lua_api.txt | 12 | ||||
| -rw-r--r-- | doc/menu_lua_api.txt | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9872f09ac..b9da89c2d 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1691,7 +1691,7 @@ Amount and wear --------------- All item stacks have an amount between 0 and 65535. It is 1 by -default. Tool item stacks can not have an amount greater than 1. +default. Tool item stacks cannot have an amount greater than 1. Tools use a wear (damage) value ranging from 0 to 65535. The value 0 is the default and is used for unworn tools. The values @@ -3546,10 +3546,10 @@ Operators can be used if all of the involved vectors have metatables: * Returns the additive inverse of v. * `v1 + v2`: * Returns the sum of both vectors. - * Note: `+` can not be used together with scalars. + * Note: `+` cannot be used together with scalars. * `v1 - v2`: * Returns the difference of `v1` subtracted by `v2`. - * Note: `-` can not be used together with scalars. + * Note: `-` cannot be used together with scalars. * `v * s` or `s * v`: * Returns `v` scaled by `s`. * `v / s`: @@ -3650,7 +3650,7 @@ Helper functions * Example: `minetest.string_to_area("(1,2,3) (~5,~-5,~)", {x=10,y=10,z=10})` returns `{x=1,y=2,z=3}, {x=15,y=5,z=10}` * `minetest.formspec_escape(string)`: returns a string - * escapes the characters "[", "]", "\", "," and ";", which can not be used + * escapes the characters "[", "]", "\", "," and ";", which cannot be used in formspecs. * `minetest.is_yes(arg)` * returns true if passed 'y', 'yes', 'true' or a number that isn't zero. @@ -5812,7 +5812,7 @@ Formspec `minetest.close_formspec(playername, "")`. **USE THIS ONLY WHEN ABSOLUTELY NECESSARY!** * `minetest.formspec_escape(string)`: returns a string - * escapes the characters "[", "]", "\", "," and ";", which can not be used + * escapes the characters "[", "]", "\", "," and ";", which cannot be used in formspecs. * `minetest.explode_table_event(string)`: returns a table * returns e.g. `{type="CHG", row=1, column=2}` @@ -6379,7 +6379,7 @@ Misc. * **Warning**: JSON is more strict than the Lua table format. 1. You can only use strings and positive integers of at least one as keys. - 2. You can not mix string and integer keys. + 2. You cannot mix string and integer keys. This is due to the fact that JSON has two distinct array and object values. * Example: `write_json({10, {a = false}})`, diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index b5c29aeb9..661e378d5 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -171,7 +171,7 @@ core.update_formspec(formspec) core.get_table_index(tablename) -> index ^ can also handle textlists core.formspec_escape(string) -> string -^ escapes characters [ ] \ , ; that can not be used in formspecs +^ escapes characters [ ] \ , ; that cannot be used in formspecs core.explode_table_event(string) -> table ^ returns e.g. {type="CHG", row=1, column=2} ^ type: "INV" (no row selected), "CHG" (selected) or "DCL" (double-click) |
