luci.utils.contains: update documentation to match reality
[project/luci.git] / modules / luci-base / luasrc / util.luadoc
index 1c09b7a..ed1d8ab 100644 (file)
@@ -182,7 +182,8 @@ Checks whether the given table contains the given value.
 @name contains
 @param table   Table value
 @param value   Value to search within the given table
-@return                Boolean indicating whether the given value occurs within table
+@return                number indicating the first index at which the given value occurs
+--                     within table or false.
 ]]
 
 ---[[