Skip to content

Fix Util.list when n=0#613

Open
ypconstante wants to merge 2 commits intoelixirs:devfrom
ypconstante:fix-util-list-with-zero-length
Open

Fix Util.list when n=0#613
ypconstante wants to merge 2 commits intoelixirs:devfrom
ypconstante:fix-util-list-with-zero-length

Conversation

@ypconstante
Copy link
Contributor

Today Faker.Util.list(0, & &1) returns [0, -1], and also causes a runtime warning on Elixir 1.18 because the range has a negative step.

I've added:

  • USAGE.md docs if applicable
  • CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant