Skip to content

Commit

Permalink
Merge pull request #112 from brettcannon/patch-2
Browse files Browse the repository at this point in the history
Add some missing spaces in a code example
  • Loading branch information
dabeaz committed Mar 2, 2017
2 parents c1f07cc + ac7d4a8 commit d4c8664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/ply.html
Expand Up @@ -561,8 +561,8 @@ <H3><a name="ply_nn9"></a>4.6 Line numbers and positional information</H3>
# Compute column.
# input is the input text string
# token is a token instance
def find_column(input,token):
last_cr = input.rfind('\n',0,token.lexpos)
def find_column(input, token):
last_cr = input.rfind('\n', 0, token.lexpos)
if last_cr < 0:
last_cr = 0
column = (token.lexpos - last_cr) + 1
Expand Down

0 comments on commit d4c8664

Please sign in to comment.