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

fix(#38, #40): add a guard for slices with length 0; correct words count in test, reimplement with bufio.ScanWords #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zino23
Copy link

@zino23 zino23 commented May 31, 2022

When the slice's length is 0, should directly return to prevent false
result or slice out of bounds runtime error

When the slice's length is 0, should directly return to prevent false
result or slice out of bounds runtime error
zino23 pushed a commit to zino23/gopl that referenced this pull request Jun 4, 2022
@zino23 zino23 changed the title fix(#38): add a guard for slices with length 0 fix(#38, #40): add a guard for slices with length 0; correct words count in test, reimplement with bufio.ScanWords Jun 4, 2022
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.

1 participant