Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix outdated comments in StringUtils truncate() #8707

Merged
merged 2 commits into from
Aug 11, 2014
Merged

Fix outdated comments in StringUtils truncate() #8707

merged 2 commits into from
Aug 11, 2014

Conversation

le717
Copy link
Contributor

@le717 le717 commented Aug 9, 2014

I must have stared at this code so much I did not realize they were outdated until right now. 😄

* @param {number} len Length to which text should be limited.
* @return {string} Returns truncated text only if it was changed.
* @param {number} len Length to which text should be truncated
* @return {string} Returns truncated text only if it was changed
Copy link
Member

Choose a reason for hiding this comment

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

Nit: can you change this to {?string} to indicate that it can return undefined?

@peterflynn
Copy link
Member

@le717 Just that one suggestion, looks fine to merge other than that

@le717
Copy link
Contributor Author

le717 commented Aug 11, 2014

@peterflynn Done.

@peterflynn
Copy link
Member

Looks good -- thanks!

peterflynn added a commit that referenced this pull request Aug 11, 2014
Clean up comments in StringUtils `truncate()`
@peterflynn peterflynn merged commit 165e459 into adobe:master Aug 11, 2014
@le717 le717 deleted the fix-truncate-comments branch August 12, 2014 13:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants