Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Fix issue 1742 by replacing '>' with '>=' #1743

Merged
merged 1 commit into from
Mar 24, 2018

Conversation

twang2218
Copy link
Contributor

Signed-off-by: Tao Wang twang2218@gmail.com

What does this do / why do we need it?

bytes.IndexByte will return -1 if it cannot find anything, so to check whether there is a \n in the comment, the condition should be >= 0, rather than > 0.

What should your reviewer look out for in this PR?

Do you need help or clarification on anything?

Which issue(s) does this PR fix?

fixes #1742

Signed-off-by: Tao Wang <twang2218@gmail.com>
@sdboyer
Copy link
Member

sdboyer commented Mar 24, 2018

Nice! Thanks for working this all the way through. 🎉

@sdboyer sdboyer merged commit 42e3d76 into golang:master Mar 24, 2018
@twang2218 twang2218 deleted the issue-1742-indexbyte branch April 11, 2018 10:08
hueys pushed a commit to hueys/go-timecode that referenced this pull request May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Got '*pkgtree.NonCanonicalImportRoot' error when porting to dep
3 participants