mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
diagnostics: Fix typo about 0-indexed COL in location.
* guix/diagnostics.scm (source-properties->location): The location column is 0-indexed, not 1-indexed (the same as in source-properties, so the code is accurate).
This commit is contained in:
parent
d7c4e7a0c2
commit
53cd5923ef
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ (define (source-properties->location loc)
|
|||
by Guile's `source-properties', `frame-source', `current-source-location',
|
||||
etc."
|
||||
;; In accordance with the GCS, start line and column numbers at 1. Note
|
||||
;; that unlike LINE and `port-column', COL is actually 1-indexed here...
|
||||
;; that unlike LINE and `port-column', COL is actually 0-indexed here...
|
||||
(match loc
|
||||
((('line . line) ('column . col) ('filename . file)) ;common case
|
||||
(and file line col
|
||||
|
|
Loading…
Reference in a new issue