소스 검색

Merge pull request #24747 from corrigentia/patch-6

Docs: Fix "equal to" and code markup in float.xml
Rémi Verschelde 6 년 전
부모
커밋
59c5b42076
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      doc/classes/float.xml

+ 3 - 3
doc/classes/float.xml

@@ -17,7 +17,7 @@
 			<argument index="0" name="from" type="bool">
 			<argument index="0" name="from" type="bool">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				Cast a [bool] value to a floating point value, [code]float(true)[/code] will be equals to 1.0 and [code]float(false)[/code] will be equals to 0.0.
+				Cast a [bool] value to a floating point value, [code]float(true)[/code] will be equal to 1.0 and [code]float(false)[/code] will be equal to 0.0.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="float">
 		<method name="float">
@@ -26,7 +26,7 @@
 			<argument index="0" name="from" type="int">
 			<argument index="0" name="from" type="int">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				Cast an [int] value to a floating point value, [code]float(1)[/code] will be equals to 1.0.
+				Cast an [int] value to a floating point value, [code]float(1)[/code] will be equal to 1.0.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="float">
 		<method name="float">
@@ -35,7 +35,7 @@
 			<argument index="0" name="from" type="String">
 			<argument index="0" name="from" type="String">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				Cast a [String] value to a floating point value. This method accepts float value strings like [code] '1.23' [/code] and exponential notation strings for its parameter so calling [code] float('1e3') [/code] will return 1000.0 and calling [code] float('1e-3') [/code] will return 0.001.
+				Cast a [String] value to a floating point value. This method accepts float value strings like [code]"1.23"[/code] and exponential notation strings for its parameter so calling [code]float("1e3")[/code] will return 1000.0 and calling [code]float("1e-3")[/code] will return 0.001.
 			</description>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>