Browse Source

Merge pull request #113782 from JJCUBER/patch-1

Fix typos in VectorNi docs (float division examples)
Rémi Verschelde 1 day ago
parent
commit
9785d4435d
3 changed files with 3 additions and 3 deletions
  1. 1 1
      doc/classes/Vector2i.xml
  2. 1 1
      doc/classes/Vector3i.xml
  3. 1 1
      doc/classes/Vector4i.xml

+ 1 - 1
doc/classes/Vector2i.xml

@@ -292,7 +292,7 @@
 			<description>
 			<description>
 				Divides each component of the [Vector2i] by the given [float]. Returns a [Vector2].
 				Divides each component of the [Vector2i] by the given [float]. Returns a [Vector2].
 				[codeblock]
 				[codeblock]
-				print(Vector2i(10, 20) / 2.9) # Prints (5.0, 10.0)
+				print(Vector2i(1, 2) / 2.5) # Prints (0.4, 0.8)
 				[/codeblock]
 				[/codeblock]
 			</description>
 			</description>
 		</operator>
 		</operator>

+ 1 - 1
doc/classes/Vector3i.xml

@@ -299,7 +299,7 @@
 			<description>
 			<description>
 				Divides each component of the [Vector3i] by the given [float]. Returns a [Vector3].
 				Divides each component of the [Vector3i] by the given [float]. Returns a [Vector3].
 				[codeblock]
 				[codeblock]
-				print(Vector3i(10, 20, 30) / 2.9) # Prints (5.0, 10.0, 15.0)
+				print(Vector3i(1, 2, 3) / 2.5) # Prints (0.4, 0.8, 1.2)
 				[/codeblock]
 				[/codeblock]
 			</description>
 			</description>
 		</operator>
 		</operator>

+ 1 - 1
doc/classes/Vector4i.xml

@@ -287,7 +287,7 @@
 				Divides each component of the [Vector4i] by the given [float].
 				Divides each component of the [Vector4i] by the given [float].
 				Returns a Vector4 value due to floating-point operations.
 				Returns a Vector4 value due to floating-point operations.
 				[codeblock]
 				[codeblock]
-				print(Vector4i(10, 20, 30, 40) / 2) # Prints (5.0, 10.0, 15.0, 20.0)
+				print(Vector4i(1, 2, 3, 4) / 2.5) # Prints (0.4, 0.8, 1.2, 1.6)
 				[/codeblock]
 				[/codeblock]
 			</description>
 			</description>
 		</operator>
 		</operator>