Przeglądaj źródła

doc: Fix style for vararg in makerst

Rémi Verschelde 6 lat temu
rodzic
commit
61771ad39b
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 3 1
      doc/classes/OS.xml
  2. 1 1
      doc/tools/makerst.py

+ 3 - 1
doc/classes/OS.xml

@@ -687,8 +687,10 @@
 		<method name="request_permission">
 		<method name="request_permission">
 			<return type="bool">
 			<return type="bool">
 			</return>
 			</return>
+			<argument index="0" name="name" type="String">
+			</argument>
 			<description>
 			<description>
-				At the moment this function is only used by the AudioDriverOpenSL to request permission for RECORD_AUDIO on Android.
+				At the moment this function is only used by [code]AudioDriverOpenSL[/code] to request permission for [code]RECORD_AUDIO[/code] on Android.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set_icon">
 		<method name="set_icon">

+ 1 - 1
doc/tools/makerst.py

@@ -954,7 +954,7 @@ def make_method_signature(class_def, method_def, make_ref, state):  # type: (Cla
         if len(method_def.parameters) > 0:
         if len(method_def.parameters) > 0:
             out += ', ...'
             out += ', ...'
         else:
         else:
-            out += '...'
+            out += ' ...'
 
 
     out += ' **)**'
     out += ' **)**'