Skip to content

Commit

Permalink
Merge pull request #9099 from broquaint/fix-incorrect-empty-call-for-…
Browse files Browse the repository at this point in the history
…rng-tutorial

Change call from empty to is_empty in RNG tutorial
  • Loading branch information
mhilbrunner committed Mar 15, 2024
2 parents f3ceda7 + e1e3e4b commit ea77d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/math/random_number_generation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ea77d5a

Please sign in to comment.