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 the find_column example in the documentation #139

Merged
merged 1 commit into from
Dec 2, 2017

Conversation

segevfiner
Copy link
Contributor

The find_column example returns the column off by +1 for every line but the first.

This is a simplified version of it that works by calculating the 0-based index of the first character in the line, and than calculating the difference between it and the token position + 1.

…ut the first.

This is a simplified version of it that works by calculating the 0-based
index of the first character in the line, and than calculating the
difference between it and the token position + 1.
@dabeaz dabeaz merged commit eed7b38 into dabeaz:master Dec 2, 2017
@segevfiner segevfiner deleted the fix-find-column branch December 3, 2017 05:28
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.

2 participants