Skip to content

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