Skip to content

Commit b2709e3

Browse files
committed
Fix error in ASSERT_ALWAYS_FALSE
1 parent 133a4a7 commit b2709e3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tutorials/scripting/gdscript/warnings/assert_always_false.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ If ``assert()`` is passed something guaranteed to be false in a boolean context,
3434
# Despite false being passed, this won't raise ASSERT_ALWAYS_FALSE.
3535
assert(false, "False is false")
3636
37-
# This evaluates to a boolean which is false, so it also won't raise
38-
# the warning.
39-
assert(3 == 4, "3 isn't equal to 4")
40-
4137
This is because ``assert(false)`` calls are often used in development to forcibly halt program execution and avoid strange errors later on.
4238

4339
See `GH-58087 <https://github.com/godotengine/godot/issues/58087>`_ for more information.

0 commit comments

Comments
 (0)