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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

path searcher exercise solution always prints lower-cased paths (13-loops / exercise / 09 / 02) #84

Closed
theclive opened this issue Jun 6, 2021 · 1 comment

Comments

@theclive
Copy link

theclive commented Jun 6, 2021

This is a small issue, but one you may want to consider 馃槈

With reference to learngo/13-loops/exercises/09-word-finder-exercises/02-path-searcher/solution/main.go

If a directory/folder legitimately contains a capital letter, converting w to lowercase results in the output displaying the path incorrectly lower-cased. One should only ToLower for the comparison, not the output to the user.

image

Sample correct vs incorrect output:
image

@theclive theclive changed the title exercise solution path case insensitive issue - 13-loops - exercise - 09 - 02 path searcher exercise solution always prints lower-cased paths - 13-loops / exercise / 09 / 02 Jun 6, 2021
@theclive theclive changed the title path searcher exercise solution always prints lower-cased paths - 13-loops / exercise / 09 / 02 path searcher exercise solution always prints lower-cased paths (13-loops / exercise / 09 / 02) Jun 6, 2021
@inancgumus
Copy link
Owner

Thanks, this seems right. 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