diff options
| author | Stephen Blott | 2012-11-07 20:30:21 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2012-11-07 20:30:21 +0000 | 
| commit | 7497b56d3acba5c8750cca5b000a428d099e66b3 (patch) | |
| tree | 32ce2558393f4903b64052510cde85947b51c47d | |
| parent | d0157d93d24c8c7f1a86289efe29e203d98bb072 (diff) | |
| download | vimium-7497b56d3acba5c8750cca5b000a428d099e66b3.tar.bz2 | |
Fix incorrect/misleading comment.
| -rw-r--r-- | background_scripts/completion.coffee | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index ab24377a..6df4f80b 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -50,9 +50,10 @@ class Suggestion    pushMatchingRanges: (string,term,ranges) ->      textPosition = 0      # Split `string` into a (flat) list of pairs: -    #   - splits[i%2] is unmatched text -    #   - splits[(i%2)+1] is the following matched text (matching `term`) -    #     (except for the final element, for which there is no following matched text). +    #   - for i=0,2,4,6,... +    #     - splits[i] is unmatched text +    #     - splits[i+1] is the following matched text (matching `term`) +    #       (except for the final element, for which there is no following matched text).      # Example:      #   - string = "Abacab"      #   - term = "a"  | 
