Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

hex: Simplify and DRY-ify HexIterator #47

Merged
merged 1 commit into from
May 22, 2019

Conversation

dongcarl
Copy link
Member

Old logic can be much simpler if we make the HexIterator wrap a Char iterator instead.

@dongcarl dongcarl requested a review from sgeisler May 20, 2019 19:30
/// Constructs a new `HexIterator` from a string slice. If the string is of odd length it
/// returns an error.
/// Constructs a new `HexIterator` from a string slice. If the string is of
/// odd length it returns an error.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice! Someone else who likes comments to be within 80 columns! Do you do this manually or do you have a Vim plugin that allows different textwidths for code vs comments?

Copy link
Member Author

Choose a reason for hiding this comment

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

Haha I use emacs and Meta-q seems to just auto-align the current comment block you're in 😁

@apoelstra apoelstra self-requested a review May 22, 2019 16:48
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

lol nice!!

@apoelstra apoelstra merged commit 5f88390 into rust-bitcoin:master May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants