Skip to content

Commit 2509b68

Browse files
committed
Indicate optional parameters in api ref
1 parent 7bc0f80 commit 2509b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/api_lua_parameters.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<table>
44
{%- for param in parameters -%}
55
<tr>
6-
<td><code>{{ param.name }}</code></td>
6+
<td><code>{%- if param.is_optional == "True" -%}[{{ param.name }}]{%- else -%}{{ param.name }}{%- endif -%}</code></td>
77
<td><code>{{ param.types | join: ", " }}</code></td>
88
<td>{{ param.doc }}
99
{%- if param.parameters -%}

0 commit comments

Comments
 (0)