fix nth-prime typespec#1634
Conversation
|
Thank you for contributing to Based on the files changed in this PR, it would be good to pay attention to the following details when reviewing the PR:
Automated comment created by PR Commenter 🤖. |
|
Hi! What a mess 😆 |
|
Hmm, yeah that's an interesting point about the "there is no zeroth prime" error from the canonical data. The guidance says you don't necessarily need to check or generate an error message based on that string. So in this case I do think that changing to |
|
Yeah, I think we are on the same page. Then here is what I would propose to do: we keep |
I noticed that it uses non_neg_integer() but pos_integer() would be more appropriate (for both the count param and the returned prime number).