瀏覽代碼

Merge pull request #80245 from timothyqiu/float-color-alpha

Fix wrong example output of `float*Color` in classref
Rémi Verschelde 2 年之前
父節點
當前提交
bf299233bc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/float.xml

+ 1 - 1
doc/classes/float.xml

@@ -70,7 +70,7 @@
 			<description>
 			<description>
 				Multiplies each component of the [Color], including the alpha, by the given [float].
 				Multiplies each component of the [Color], including the alpha, by the given [float].
 				[codeblock]
 				[codeblock]
-				print(1.5 * Color(0.5, 0.5, 0.5)) # Color(0.75, 0.75, 0.75)
+				print(1.5 * Color(0.5, 0.5, 0.5)) # Prints "(0.75, 0.75, 0.75, 1.5)"
 				[/codeblock]
 				[/codeblock]
 			</description>
 			</description>
 		</operator>
 		</operator>