Bläddra i källkod

Merge pull request #52044 from Rubonnek/update-string-abs-rel-docs

Update documentation for is_absolute_path and is_rel_path
Max Hilbrunner 4 år sedan
förälder
incheckning
8a2730cac3
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      doc/classes/String.xml

+ 2 - 2
doc/classes/String.xml

@@ -239,7 +239,7 @@
 		<method name="is_absolute_path" qualifiers="const">
 			<return type="bool" />
 			<description>
-				If the string is a path to a file or directory, returns [code]true[/code] if the path is absolute.
+				Returns [code]true[/code] if the string is a path to a file or directory and its starting point is explicitly defined. This includes [code]res://[/code], [code]user://[/code], [code]C:\[/code], [code]/[/code], etc.
 			</description>
 		</method>
 		<method name="is_empty" qualifiers="const">
@@ -251,7 +251,7 @@
 		<method name="is_rel_path" qualifiers="const">
 			<return type="bool" />
 			<description>
-				If the string is a path to a file or directory, returns [code]true[/code] if the path is relative.
+				Returns [code]true[/code] if the string is a path to a file or directory and its starting point is implicitly defined within the context it is being used. The starting point may refer to the current directory ([code]./[/code]), or the current [Node].
 			</description>
 		</method>
 		<method name="is_subsequence_of" qualifiers="const">