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

parse \t as tab delimiter #99

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

Lireer
Copy link
Contributor

@Lireer Lireer commented Oct 17, 2021

Solves #96. File extension parsing will be in another PR.

@alexhallam alexhallam merged commit a832081 into alexhallam:main Oct 18, 2021
match bytes.len() {
1 => Ok(bytes[0]),
match *bytes {
[del] => Ok(del),
Copy link
Owner

Choose a reason for hiding this comment

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

What is del?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

[del] matches any array with exactly one byte and creates a variable named del with the value of that byte. del can then be used on the right hand side and put into the Ok.

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