Skip to content

Commit 33b513f

Browse files
red-001nerzhul
authored andcommittedJun 6, 2017
Fix typos/mistakes in the documentation for colour related functions. (#5936)
1 parent d4c0f91 commit 33b513f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
 

‎doc/client_lua_api.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1117,15 +1117,15 @@ The following functions provide escape sequences:
11171117
`minetest.get_color_escape_sequence(color) ..
11181118
message ..
11191119
minetest.get_color_escape_sequence("#ffffff")`
1120-
* `color.get_background_escape_sequence(color)`
1120+
* `minetest.get_background_escape_sequence(color)`
11211121
* `color` is a [ColorString](#colorstring)
11221122
* The escape sequence sets the background of the whole text element to
11231123
`color`. Only defined for item descriptions and tooltips.
1124-
* `color.strip_foreground_colors(str)`
1124+
* `minetest.strip_foreground_colors(str)`
11251125
* Removes foreground colors added by `get_color_escape_sequence`.
1126-
* `color.strip_background_colors(str)`
1126+
* `minetest.strip_background_colors(str)`
11271127
* Removes background colors added by `get_background_escape_sequence`.
1128-
* `color.strip_colors(str)`
1128+
* `minetest.strip_colors(str)`
11291129
* Removes all color escape sequences.
11301130

11311131
`ColorString`

‎doc/lua_api.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -2060,15 +2060,15 @@ The following functions provide escape sequences:
20602060
`minetest.get_color_escape_sequence(color) ..
20612061
message ..
20622062
minetest.get_color_escape_sequence("#ffffff")`
2063-
* `color.get_background_escape_sequence(color)`
2063+
* `minetest.get_background_escape_sequence(color)`
20642064
* `color` is a ColorString
20652065
* The escape sequence sets the background of the whole text element to
20662066
`color`. Only defined for item descriptions and tooltips.
2067-
* `color.strip_foreground_colors(str)`
2067+
* `minetest.strip_foreground_colors(str)`
20682068
* Removes foreground colors added by `get_color_escape_sequence`.
2069-
* `color.strip_background_colors(str)`
2069+
* `minetest.strip_background_colors(str)`
20702070
* Removes background colors added by `get_background_escape_sequence`.
2071-
* `color.strip_colors(str)`
2071+
* `minetest.strip_colors(str)`
20722072
* Removes all color escape sequences.
20732073

20742074
Spatial Vectors

0 commit comments

Comments
 (0)
Please sign in to comment.