Merge pull request #9099 from broquaint/fix-incorrect-empty-call-for-rng-tutorial

Change call from empty to is_empty in RNG tutorial

(cherry picked from commit ea77d5a395)
This commit is contained in:
Max Hilbrunner
2024-03-16 00:00:46 +01:00
committed by Max Hilbrunner
parent bdb56e46b1
commit 0129a31803

View File

@@ -422,7 +422,7 @@ ends up empty. When that happens, you reinitialize it to its default value::
func get_fruit():
if _fruits.empty():
if _fruits.is_empty():
# Fill the fruits array again and shuffle it.
_fruits = _fruits_full.duplicate()
_fruits.shuffle()