Skip to content

Add some convenience methods to EitherOrBoth #287

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

Merged
merged 1 commit into from
Nov 23, 2018

Conversation

jethrogb
Copy link
Contributor

@jethrogb jethrogb commented Jun 1, 2018

No description provided.

@jethrogb
Copy link
Contributor Author

Ping

}
}

/// Converts from `EitherOrBoth<A, B>` to `EitherOrBoth<&A, &B>`.
Copy link
Member

Choose a reason for hiding this comment

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

Converts from &EitherOrBoth<A, B> in fact, isn't that more illuminating to the reader? Or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used the same phrasing as https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref . However, I agree that your suggestion makes sense.

@bluss
Copy link
Member

bluss commented Nov 22, 2018

Makes total sense. Let's edit the docs then it's done? Thanks

@bluss
Copy link
Member

bluss commented Nov 23, 2018

Thanks!

@bluss
Copy link
Member

bluss commented Nov 23, 2018

bors: r+

bors bot added a commit that referenced this pull request Nov 23, 2018
287: Add some convenience methods to EitherOrBoth r=bluss a=jethrogb



Co-authored-by: jethrogb <github@jbeekman.nl>
@bors
Copy link
Contributor

bors bot commented Nov 23, 2018

Build succeeded

@bors bors bot merged commit e67b834 into rust-itertools:master Nov 23, 2018
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.

2 participants