diff --git a/src/lua_baselib.c b/src/lua_baselib.c
index dfc5398cd163abf19d8de47964bd3b9e3b4cc6af..6964d5cc9fb9d141ca8d80ea628c3714544fe7f8 100644
--- a/src/lua_baselib.c
+++ b/src/lua_baselib.c
@@ -2802,6 +2802,31 @@ Lpushdim (lua_State *L, int c, struct searchdim *v)
 I decided to make this return a table because userdata
 is scary and tables let the user set their own fields.
 */
+/*
+Returns:
+
+[1] => map number
+[2] => map title
+[3] => search frequency table
+
+The frequency table is unsorted. It has the following format:
+
+{
+	['mapnum'],
+
+	['matchd'] => matches in map title string
+	['keywhd'] => matches in map keywords
+
+	The above two tables have the following format:
+
+	{
+		['pos'] => offset from start of string
+		['siz'] => length of match
+	}...
+
+	['total'] => the total matches
+}...
+*/
 static int lib_gFindMap(lua_State *L)
 {
 	const char *query = luaL_checkstring(L, 1);