Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove panic!() in loop.cycle([]) #617

Merged
merged 1 commit into from
Jan 31, 2022
Merged

Conversation

Kijewski
Copy link
Collaborator

No description provided.

djc
djc previously approved these changes Jan 31, 2022
@@ -1316,7 +1316,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
"cycle" => match args {
[arg] => {
if matches!(arg, Expr::Array(arr) if arr.is_empty()) {
panic!("loop.cycle(…) cannot use an empty array.");
return Err("loop.cycle(…) cannot use an empty array.".into());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also not end in a period (I do realize it was there already).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the period.

@Kijewski
Copy link
Collaborator Author

Fixed one more typo in my change.

@djc djc merged commit 84fe381 into djc:main Jan 31, 2022
@Kijewski Kijewski deleted the pr-visit_call-no-panic branch January 31, 2022 13:24
@djc djc mentioned this pull request Feb 26, 2023
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.

None yet

2 participants