Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
8184778a
Commit
8184778a
authored
Jan 04, 2011
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix occurrences of occur[^sr .,?!;\n]
R=r, r2 CC=golang-dev
https://golang.org/cl/3794043
parent
6773f142
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/pkg/exp/datafmt/datafmt.go
src/pkg/exp/datafmt/datafmt.go
+1
-1
src/pkg/go/parser/interface.go
src/pkg/go/parser/interface.go
+1
-1
src/pkg/go/printer/printer.go
src/pkg/go/printer/printer.go
+2
-2
src/pkg/index/suffixarray/suffixarray_test.go
src/pkg/index/suffixarray/suffixarray_test.go
+2
-2
No files found.
src/pkg/exp/datafmt/datafmt.go
View file @
8184778a
...
...
@@ -656,7 +656,7 @@ func (s *State) eval(fexpr expr, value reflect.Value, index int) bool {
// Eval formats each argument according to the format
// f and returns the resulting []byte and os.Error. If
// an error occured, the []byte contains the partially
// an error occur
r
ed, the []byte contains the partially
// formatted result. An environment env may be passed
// in which is available in custom formatters through
// the state parameter.
...
...
src/pkg/go/parser/interface.go
View file @
8184778a
...
...
@@ -178,7 +178,7 @@ func ParseFiles(fset *token.FileSet, filenames []string, mode uint) (pkgs map[st
// information is recorded in the file set fset.
//
// If the directory couldn't be read, a nil map and the respective error are
// returned. If a parse error occured, a non-nil but incomplete map and the
// returned. If a parse error occur
r
ed, a non-nil but incomplete map and the
// error are returned.
//
func
ParseDir
(
fset
*
token
.
FileSet
,
path
string
,
filter
func
(
*
os
.
FileInfo
)
bool
,
mode
uint
)
(
map
[
string
]
*
ast
.
Package
,
os
.
Error
)
{
...
...
src/pkg/go/printer/printer.go
View file @
8184778a
...
...
@@ -879,7 +879,7 @@ func (p *printer) commentBefore(next token.Position) bool {
}
// Flush prints any pending comments and whitespace occuring
// Flush prints any pending comments and whitespace occur
r
ing
// textually before the position of the next token tok. Flush
// returns true if a pending formfeed character was dropped
// from the whitespace buffer as a result of interspersing
...
...
@@ -922,7 +922,7 @@ const (
)
// Design note: It is tempting to eliminate extra blanks occuring in
// Design note: It is tempting to eliminate extra blanks occur
r
ing in
// whitespace in this function as it could simplify some
// of the blanks logic in the node printing functions.
// However, this would mess up any formatting done by
...
...
src/pkg/index/suffixarray/suffixarray_test.go
View file @
8184778a
...
...
@@ -101,11 +101,11 @@ var testCases = []testCase{
}
// find all occurences of s in source; report at most n occurences
// find all occur
r
ences of s in source; report at most n occurences
func
find
(
src
,
s
string
,
n
int
)
[]
int
{
var
res
vector
.
IntVector
if
s
!=
""
&&
n
!=
0
{
// find at most n occurences of s in src
// find at most n occur
r
ences of s in src
for
i
:=
-
1
;
n
<
0
||
len
(
res
)
<
n
;
{
j
:=
strings
.
Index
(
src
[
i
+
1
:
],
s
)
if
j
<
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment