فهرست منبع

Merge pull request #46770 from aaronfranke/3.2-sign-doc

[3.2] Fix documentation for Vector2/3.sign()
Rémi Verschelde 4 سال پیش
والد
کامیت
81fd486c92
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      doc/classes/Vector2.xml
  2. 1 1
      doc/classes/Vector3.xml

+ 1 - 1
doc/classes/Vector2.xml

@@ -280,7 +280,7 @@
 			<return type="Vector2">
 			</return>
 			<description>
-				Returns the vector with each component set to one or negative one, depending on the signs of the components, or zero if the component is zero, by calling [method @GDScript.sign] on each component.
+				Returns the vector with each component set to one or negative one, depending on the signs of the components. If a component is zero, it returns positive one.
 			</description>
 		</method>
 		<method name="slerp">

+ 1 - 1
doc/classes/Vector3.xml

@@ -280,7 +280,7 @@
 			<return type="Vector3">
 			</return>
 			<description>
-				Returns a vector with each component set to one or negative one, depending on the signs of this vector's components, or zero if the component is zero, by calling [method @GDScript.sign] on each component.
+				Returns a vector with each component set to one or negative one, depending on the signs of this vector's components. If a component is zero, it returns positive one.
 			</description>
 		</method>
 		<method name="slerp">