Merge pull request #80217 from Mickeon/oops-rects

Revert incorrect `Rect2.expand` description.
This commit is contained in:
Rémi Verschelde 2023-08-03 15:12:45 +02:00
commit c97e4a31ac
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@
<return type="Rect2" /> <return type="Rect2" />
<param index="0" name="to" type="Vector2" /> <param index="0" name="to" type="Vector2" />
<description> <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] [codeblocks]
[gdscript] [gdscript]
var rect = Rect2(0, 0, 5, 2) var rect = Rect2(0, 0, 5, 2)

View File

@ -82,7 +82,7 @@
<return type="Rect2i" /> <return type="Rect2i" />
<param index="0" name="to" type="Vector2i" /> <param index="0" name="to" type="Vector2i" />
<description> <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] [codeblocks]
[gdscript] [gdscript]
var rect = Rect2i(0, 0, 5, 2) var rect = Rect2i(0, 0, 5, 2)