Skip to content

Commit c0a0949

Browse files
Fix several minor issues in docs
getenv() is not in datatime rawdelete() method requires slot name
1 parent b215043 commit c0a0949

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

doc/source/reference/language/builtin_functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ tries to get a value from the slot 'key' without employing delegation
366366
Sets the slot 'key' with the value 'val' without employing delegation. If the slot does not exists, it will be created. Returns table itself.
367367

368368

369-
.. sq:function:: table.rawdelete()
369+
.. sq:function:: table.rawdelete(key)
370370
371371
Deletes the slot key without employing delegation and returns its value. If the slot does not exists, returns null.
372372

doc/source/stdlib/stddatetimelib.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _stdlib_stddatetimelib:
22

3-
==================
3+
====================
44
The Datetime library
5-
==================
5+
====================
66

77
The datetime library date and time manipulation facilities
88

@@ -44,10 +44,6 @@ if `time` is omitted the current time is used.
4444

4545
if `format` can be 'l' local time or 'u' UTC time, if omitted is defaulted as 'l'(local time).
4646

47-
.. sq:function:: getenv(varaname)
48-
49-
Returns a string containing the value of the environment variable `varname`
50-
5147
.. sq:function:: time()
5248
5349
returns the number of seconds elapsed since midnight 00:00:00, January 1, 1970.

0 commit comments

Comments
 (0)