Explorar o código

Merge pull request #72670 from YuriSizov/docs-signal-get-connections

Fix incorrect description for `Signal::get_connections`
Yuri Sizov %!s(int64=2) %!d(string=hai) anos
pai
achega
b0598dcdb7
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. 1 1
      doc/classes/Object.xml
  2. 4 1
      doc/classes/Signal.xml

+ 1 - 1
doc/classes/Object.xml

@@ -639,7 +639,7 @@
 			<description>
 				Returns an [Array] of connections for the given [param signal] name. Each connection is represented as a [Dictionary] that contains three entries:
 				- [code]signal[/code] is a reference to the [Signal];
-				- [code]callable[/code] is a reference to the [Callable];
+				- [code]callable[/code] is a reference to the connected [Callable];
 				- [code]flags[/code] is a combination of [enum ConnectFlags].
 			</description>
 		</method>

+ 4 - 1
doc/classes/Signal.xml

@@ -85,7 +85,10 @@
 		<method name="get_connections" qualifiers="const">
 			<return type="Array" />
 			<description>
-				Returns the list of [Callable]s connected to this signal.
+				Returns an [Array] of connections for this signal. Each connection is represented as a [Dictionary] that contains three entries:
+				- [code]signal[/code] is a reference to this signal;
+				- [code]callable[/code] is a reference to the connected [Callable];
+				- [code]flags[/code] is a combination of [enum Object.ConnectFlags].
 			</description>
 		</method>
 		<method name="get_name" qualifiers="const">