Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(751)

Side by Side Diff: src/pkg/fmt/scan.go

Issue 5358041: code review 5358041: renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* (Closed)
Patch Set: diff -r f759d7ef4e8b https://go.googlecode.com/hg/ Created 13 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/fmt/print.go ('k') | src/pkg/fmt/scan_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package fmt 5 package fmt
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "errors" 9 "errors"
10 "io" 10 "io"
11 "math" 11 "math"
12 "os" 12 "os"
13 "reflect" 13 "reflect"
14 "strconv" 14 "strconv"
15 "strings" 15 "strings"
16 "unicode" 16 "unicode"
17 » "utf8" 17 » "unicode/utf8"
18 ) 18 )
19 19
20 // runeUnreader is the interface to something that can unread runes. 20 // runeUnreader is the interface to something that can unread runes.
21 // If the object provided to Scan does not satisfy this interface, 21 // If the object provided to Scan does not satisfy this interface,
22 // a local buffer will be used to back up the input, but its contents 22 // a local buffer will be used to back up the input, but its contents
23 // will be lost when Scan returns. 23 // will be lost when Scan returns.
24 type runeUnreader interface { 24 type runeUnreader interface {
25 UnreadRune() error 25 UnreadRune() error
26 } 26 }
27 27
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 1105
1106 s.scanOne(c, field) 1106 s.scanOne(c, field)
1107 numProcessed++ 1107 numProcessed++
1108 s.fieldLimit = s.limit 1108 s.fieldLimit = s.limit
1109 } 1109 }
1110 if numProcessed < len(a) { 1110 if numProcessed < len(a) {
1111 s.errorString("too many operands") 1111 s.errorString("too many operands")
1112 } 1112 }
1113 return 1113 return
1114 } 1114 }
OLDNEW
« no previous file with comments | « src/pkg/fmt/print.go ('k') | src/pkg/fmt/scan_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b