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
7bec1a60
Commit
7bec1a60
authored
Apr 24, 2013
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: fix typos
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/8896045
parent
e680710d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
doc/articles/image_package.html
doc/articles/image_package.html
+2
-2
doc/codewalk/urlpoll.go
doc/codewalk/urlpoll.go
+1
-1
doc/devel/weekly.html
doc/devel/weekly.html
+2
-2
src/pkg/net/http/serve_test.go
src/pkg/net/http/serve_test.go
+1
-1
src/pkg/net/http/server.go
src/pkg/net/http/server.go
+1
-1
src/pkg/runtime/chan.c
src/pkg/runtime/chan.c
+1
-1
src/pkg/runtime/os_darwin.c
src/pkg/runtime/os_darwin.c
+1
-1
No files found.
doc/articles/image_package.html
View file @
7bec1a60
...
...
@@ -130,7 +130,7 @@ much easier to type.
A
<code>
Rectangle
</code>
is inclusive at the top-left and exclusive at the
bottom-right. For a
<code>
Point p
</code>
and a
<code>
Rectangle r
</code>
,
<code>
p.In(r)
</code>
if and only if
<code>
r.Min.X
<
= p.X
&&
p.X
<
r.Max.X
</code>
, and similarly for
<code>
Y
</code>
. This is anal
a
gous to how
<code>
r.Min.X
<
= p.X
&&
p.X
<
r.Max.X
</code>
, and similarly for
<code>
Y
</code>
. This is anal
o
gous to how
a slice
<code>
s[i0:i1]
</code>
is inclusive at the low end and exclusive at the
high end. (Unlike arrays and slices, a
<code>
Rectangle
</code>
often has a
non-zero origin.)
...
...
@@ -236,7 +236,7 @@ more complicated, to access these struct type's <code>Pix</code> field directly.
The slice-based
<code>
Image
</code>
implementations also provide a
<code>
SubImage
</code>
method, which returns an
<code>
Image
</code>
backed by the
same array. Modifying the pixels of a sub-image will affect the pixels of the
original image, anal
a
gous to how modifying the contents of a sub-slice
original image, anal
o
gous to how modifying the contents of a sub-slice
<code>
s[i0:i1]
</code>
will affect the contents of the original slice
<code>
s
</code>
.
</p>
...
...
doc/codewalk/urlpoll.go
View file @
7bec1a60
...
...
@@ -76,7 +76,7 @@ func (r *Resource) Poll() string {
return
resp
.
Status
}
// Sleep sleeps for an appropriate interval (depend
a
nt on error state)
// Sleep sleeps for an appropriate interval (depend
e
nt on error state)
// before sending the Resource to done.
func
(
r
*
Resource
)
Sleep
(
done
chan
<-
*
Resource
)
{
time
.
Sleep
(
pollInterval
+
errTimeout
*
time
.
Duration
(
r
.
errCount
))
...
...
doc/devel/weekly.html
View file @
7bec1a60
...
...
@@ -2035,7 +2035,7 @@ Other changes:
* spec: define order of multiple assignment.
* syscall/windows: dll function load and calling changes (thanks Alex Brainman).
* syscall: add #ifdefs to fix the manual corrections in ztypes_linux_arm.go (thanks Dave Cheney),
adjust Mount to accomodate stricter FS implementations.
adjust Mount to accom
m
odate stricter FS implementations.
* testing: fix time reported for failing tests.
* utf8: add Valid and ValidString.
* websocket: tweak hybi ReadHandshake to support Firefox (thanks Luca Greco).
...
...
@@ -4362,7 +4362,7 @@ The print/println bootstrapping functions now write to standard error.
To write to standard output, use fmt.Print[ln].
A new tool, govet, has been added to the Go distribution. Govet is a static
checker for Go programs. At the moment, and for the forseeable future,
checker for Go programs. At the moment, and for the for
e
seeable future,
it only checks arguments to print calls.
The cgo tool for writing Go bindings for C code has changed so that it no
...
...
src/pkg/net/http/serve_test.go
View file @
7bec1a60
...
...
@@ -1966,7 +1966,7 @@ Host: golang.org
const
someResponse
=
"<html>some response</html>"
// A Reponse that's just no bigger than 2KB, the buffer-before-chunking threshold.
// A Re
s
ponse that's just no bigger than 2KB, the buffer-before-chunking threshold.
var
response
=
bytes
.
Repeat
([]
byte
(
someResponse
),
2
<<
10
/
len
(
someResponse
))
// Both Content-Type and Content-Length set. Should be no buffering.
...
...
src/pkg/net/http/server.go
View file @
7bec1a60
...
...
@@ -1492,7 +1492,7 @@ type Server struct {
// TLSNextProto optionally specifies a function to take over
// ownership of the provided TLS connection when an NPN
// protocol upgrade has occured. The map key is the protocol
// protocol upgrade has occur
r
ed. The map key is the protocol
// name negotiated. The Handler argument should be used to
// handle HTTP requests and will initialize the Request's TLS
// and RemoteAddr if not already set. The connection is
...
...
src/pkg/runtime/chan.c
View file @
7bec1a60
...
...
@@ -1011,7 +1011,7 @@ loop:
c
=
cas
->
chan
;
if
(
c
->
dataqsiz
>
0
)
runtime
·
throw
(
"selectgo: shouldnt happen"
);
runtime
·
throw
(
"selectgo: shouldn
'
t happen"
);
if
(
debug
)
runtime
·
printf
(
"wait-return: sel=%p c=%p cas=%p kind=%d
\n
"
,
...
...
src/pkg/runtime/os_darwin.c
View file @
7bec1a60
...
...
@@ -92,7 +92,7 @@ runtime·goenvs(void)
// Register our thread-creation callback (see sys_darwin_{amd64,386}.s)
// but only if we're not using cgo. If we are using cgo we need
// to let the C pthread libary install its own thread-creation callback.
// to let the C pthread lib
r
ary install its own thread-creation callback.
if
(
!
runtime
·
iscgo
)
{
if
(
runtime
·
bsdthread_register
()
!=
0
)
{
if
(
runtime
·
getenv
(
"DYLD_INSERT_LIBRARIES"
))
...
...
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