Skip to content

Commit

Permalink
scanner: Update import path and fix golint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew committed Mar 13, 2016
1 parent 1ba3b4e commit 6703dc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion internal/golang.org/x/exp/ebnf/ebnf.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ package ebnf

import (
"fmt"
"github.com/mewmew/speak/internal/text/scanner"
"unicode"
"unicode/utf8"

"github.com/mewmew/speak/internal/text/scanner"
)

// -----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion internal/text/scanner/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ package scanner_test
import (
"fmt"
"strings"
"text/scanner"

"github.com/mewmew/speak/internal/text/scanner"
)

func Example() {
Expand Down
3 changes: 1 addition & 2 deletions internal/text/scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import (
"unicode/utf8"
)

// A source position is represented by a Position value.
// A position is valid if Line > 0.
// A Position represents a source position, which is valid if Line > 0.
type Position struct {
Filename string // filename, if any
Offset int // byte offset, starting at 0
Expand Down

0 comments on commit 6703dc7

Please sign in to comment.