mirror of
https://github.com/golang/go.git
synced 2024-09-30 06:47:04 +00:00
parent
f74beebb2f
commit
6ea866c04b
@ -442,7 +442,7 @@ func parseTagAndLength(bytes []byte, initOffset int) (ret tagAndLength, offset i
|
||||
//
|
||||
// (This is used in order to remove ambiguity with optional elements.)
|
||||
//
|
||||
// You can layer EXPLICIT and IMPLICIT tags to an arbitary depth, however we
|
||||
// You can layer EXPLICIT and IMPLICIT tags to an arbitrary depth, however we
|
||||
// don't support that here. We support a single layer of EXPLICIT or IMPLICIT
|
||||
// tagging with tag strings on the fields of a structure.
|
||||
|
||||
|
@ -358,7 +358,7 @@ func (f *inflater) readHuffman() os.Error {
|
||||
// Decode a single Huffman block from f.
|
||||
// hl and hd are the Huffman states for the lit/length values
|
||||
// and the distance values, respectively. If hd == nil, using the
|
||||
// fixed distance encoding assocated with fixed Huffman blocks.
|
||||
// fixed distance encoding associated with fixed Huffman blocks.
|
||||
func (f *inflater) decodeBlock(hl, hd *huffmanDecoder) os.Error {
|
||||
for {
|
||||
v, err := f.huffSym(hl);
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"runtime";
|
||||
)
|
||||
|
||||
// An aborter aborts the thread's current compututation, usually
|
||||
// An aborter aborts the thread's current computation, usually
|
||||
// passing the error to a waiting thread.
|
||||
type aborter interface {
|
||||
Abort(err os.Error);
|
||||
|
@ -482,7 +482,7 @@ func (p *Process) Event() Event { return p.event }
|
||||
// but it's still weird if an event happens after the Cont and before
|
||||
// the WaitStop that the handlers say to continue from. Or we could
|
||||
// handle them on a separate thread. Then obviously you get weird
|
||||
// asynchrony things, like prints while the user it typing a command,
|
||||
// asynchronous things, like prints while the user it typing a command,
|
||||
// but that's not necessarily a bad thing.
|
||||
|
||||
// ContWait resumes process execution and waits for an event to occur
|
||||
|
@ -147,7 +147,7 @@ func (l *Logger) Output(calldepth int, s string) {
|
||||
// Logf is analogous to Printf() for a Logger.
|
||||
func (l *Logger) Logf(format string, v ...) { l.Output(2, fmt.Sprintf(format, v)) }
|
||||
|
||||
// Log is analogouts to Print() for a Logger.
|
||||
// Log is analogous to Print() for a Logger.
|
||||
func (l *Logger) Log(v ...) { l.Output(2, fmt.Sprintln(v)) }
|
||||
|
||||
// Stdout is a helper function for easy logging to stdout. It is analogous to Print().
|
||||
|
@ -168,7 +168,7 @@ type serverType struct {
|
||||
// For example, rpc.Register() calls server.add().
|
||||
var server = &serverType{serviceMap: make(map[string]*service)}
|
||||
|
||||
// Is this a publicly vislble - upper case - name?
|
||||
// Is this a publicly visible - upper case - name?
|
||||
func isPublic(name string) bool {
|
||||
rune, _ := utf8.DecodeRuneInString(name);
|
||||
return unicode.IsUpper(rune);
|
||||
|
Loading…
Reference in New Issue
Block a user