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

23-input-scanning/exercises/05-quit/solution isn't case insensitive #40

Closed
flynshue opened this issue Jun 3, 2020 · 1 comment
Closed

Comments

@flynshue
Copy link

flynshue commented Jun 3, 2020

Suggested fix

	for in.Scan() {
		w := strings.ToLower(in.Text())

		if words[w] {
			fmt.Println("TWICE!")
			return
		}
		words[w] = true
	}
@inancgumus
Copy link
Owner

Good catch, could you send a PR?

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

No branches or pull requests

2 participants