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

Change input argument to &str #32

Merged
merged 3 commits into from
Nov 1, 2022

Conversation

aleksanderkrauze
Copy link
Contributor

I changed input to be &str instead of &[u8] since it is more clear now what it does and the only thing that was done with it was converting it to &str anyway.

Also cleaned up tests and "drawing" part of say function.

Since input was converted to &str anyway there is no reason not
to require it upfront. This also makes that API has more sense,
since now it is obvious that "a slice of bytes that you want to
be written out to somewhere" is an UTF-8 encoded string.
Expected data in tests is now a string slice, not a byte slice.
Changed concat! macro in favour of r#"" strings.
Cleaned up say. Removed unnecessary intermediate Vecs.
Added some comments.
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