浏览代码

Revert incorrect `Rect2.expand` description.

Also affects Rect2i of course.
Micky 2 年之前
父节点
当前提交
f17d3a66fe
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      doc/classes/Rect2.xml
  2. 1 1
      doc/classes/Rect2i.xml

+ 1 - 1
doc/classes/Rect2.xml

@@ -83,7 +83,7 @@
 			<return type="Rect2" />
 			<param index="0" name="to" type="Vector2" />
 			<description>
-				Returns a copy of this rectangle expanded to include the given [param to] point, if necessary.
+				Returns a copy of this rectangle expanded to align the edges with the given [param to] point, if necessary.
 				[codeblocks]
 				[gdscript]
 				var rect = Rect2(0, 0, 5, 2)

+ 1 - 1
doc/classes/Rect2i.xml

@@ -82,7 +82,7 @@
 			<return type="Rect2i" />
 			<param index="0" name="to" type="Vector2i" />
 			<description>
-				Returns a copy of this rectangle expanded to include the given [param to] point, if necessary.
+				Returns a copy of this rectangle expanded to align the edges with the given [param to] point, if necessary.
 				[codeblocks]
 				[gdscript]
 				var rect = Rect2i(0, 0, 5, 2)