Skip to content

return length and width from utils::prefix(_length)#107

Merged
gyscos merged 1 commit intogyscos:masterfrom
dermetfan:prefix
Feb 1, 2017
Merged

return length and width from utils::prefix(_length)#107
gyscos merged 1 commit intogyscos:masterfrom
dermetfan:prefix

Conversation

@dermetfan
Copy link
Copy Markdown
Contributor

I considered using a tuple but that is not as readable. Also I hope you find it OK to rename prefix_length to prefix as I think that makes more sense now that it returns a Prefix that contains not only the length.

see df835d1

src/utils/mod.rs Outdated
@@ -34,7 +42,7 @@ pub use self::reader::ProgressReader;
/// prefix_length(my_text.graphemes(true), 5, "");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Just need to update the doc comment here and it should be fine.
Thanks!

Copy link
Copy Markdown
Contributor Author

@dermetfan dermetfan Feb 1, 2017

Choose a reason for hiding this comment

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

Sorry, I need to remember that cargo build may not be enough (fixed by amending)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

That's what travis is for :)

@gyscos
Copy link
Copy Markdown
Owner

gyscos commented Feb 1, 2017

Looks good! Thanks again!

@gyscos gyscos merged commit 57c1c1a into gyscos:master Feb 1, 2017
@dermetfan dermetfan deleted the prefix branch February 1, 2017 19:57
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