exp: fix some typos
Change-Id: If23d54917054f5ab67bff383c045e425f51e7e02
GitHub-Last-Rev: 1393b77ba2
GitHub-Pull-Request: golang/exp#28
Reviewed-on: https://go-review.googlesource.com/c/exp/+/389596
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
Родитель
bbda1eaf7a
Коммит
a2e15db56b
|
@ -37,7 +37,7 @@ type caller struct {
|
|||
var globalCallers chan *sources
|
||||
|
||||
// RegisterHelper records a function as being an event helper that should not
|
||||
// be used when capturing the source infomation on events.
|
||||
// be used when capturing the source information on events.
|
||||
// v should be either a string or a function pointer.
|
||||
// If v is a string it is of the form
|
||||
// Space.Owner.Name
|
||||
|
|
|
@ -57,11 +57,11 @@ type Devfs struct {
|
|||
// Mode is the SPI mode. SPI mode is a combination of polarity and phases.
|
||||
// CPOL is the high order bit, CPHA is the low order. Pre-computed mode
|
||||
// values are Mode0, Mode1, Mode2 and Mode3. The value of the mode argument
|
||||
// can be overriden by the device's driver.
|
||||
// can be overridden by the device's driver.
|
||||
// Required.
|
||||
Mode Mode
|
||||
|
||||
// MaxSpeed is the max clock speed (Hz) and can be overriden by the device's driver.
|
||||
// MaxSpeed is the max clock speed (Hz) and can be overridden by the device's driver.
|
||||
// Required.
|
||||
MaxSpeed int64
|
||||
}
|
||||
|
|
|
@ -24,11 +24,11 @@ type Devfs struct {
|
|||
// Mode is the SPI mode. SPI mode is a combination of polarity and phases.
|
||||
// CPOL is the high order bit, CPHA is the low order. Pre-computed mode
|
||||
// values are Mode0, Mode1, Mode2 and Mode3. The value of the mode argument
|
||||
// can be overriden by the device's driver.
|
||||
// can be overridden by the device's driver.
|
||||
// Required.
|
||||
Mode Mode
|
||||
|
||||
// MaxSpeed is the max clock speed (Hz) and can be overriden by the device's driver.
|
||||
// MaxSpeed is the max clock speed (Hz) and can be overridden by the device's driver.
|
||||
// Required.
|
||||
MaxSpeed int64
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ const (
|
|||
Mode3 = Mode(3)
|
||||
)
|
||||
|
||||
// Order is the bit justification to be used while transfering
|
||||
// Order is the bit justification to be used while transferring
|
||||
// words to the SPI device. MSB-first encoding is more popular
|
||||
// than LSB-first.
|
||||
type Order int
|
||||
|
@ -50,7 +50,7 @@ func (d *Device) SetMode(mode Mode) error {
|
|||
}
|
||||
|
||||
// SetMaxSpeed sets the maximum clock speed in Hz.
|
||||
// The value can be overriden by SPI device's driver.
|
||||
// The value can be overridden by SPI device's driver.
|
||||
func (d *Device) SetMaxSpeed(speed int) error {
|
||||
return d.conn.Configure(driver.MaxSpeed, speed)
|
||||
}
|
||||
|
|
|
@ -333,7 +333,7 @@ func (c *Connection) incomingResponse(msg *Response) {
|
|||
}
|
||||
}
|
||||
|
||||
// manageQueue reads incoming requests, attempts to proccess them with the preempter, or queue them
|
||||
// manageQueue reads incoming requests, attempts to process them with the preempter, or queue them
|
||||
// up for normal handling.
|
||||
func (c *Connection) manageQueue(ctx context.Context, preempter Preempter, fromRead <-chan *incoming, toDeliver chan<- *incoming) {
|
||||
defer close(toDeliver)
|
||||
|
|
|
@ -21,7 +21,7 @@ type NetListenOptions struct {
|
|||
NetDialer net.Dialer
|
||||
}
|
||||
|
||||
// NetListener returns a new Listener that listents on a socket using the net package.
|
||||
// NetListener returns a new Listener that listens on a socket using the net package.
|
||||
func NetListener(ctx context.Context, network, address string, options NetListenOptions) (Listener, error) {
|
||||
ln, err := options.NetListenConfig.Listen(ctx, network, address)
|
||||
if err != nil {
|
||||
|
@ -83,7 +83,7 @@ func (n *netDialer) Dial(ctx context.Context) (io.ReadWriteCloser, error) {
|
|||
// NetPipe returns a new Listener that listens using net.Pipe.
|
||||
// It is only possibly to connect to it using the Dialier returned by the
|
||||
// Dialer method, each call to that method will generate a new pipe the other
|
||||
// side of which will be returnd from the Accept call.
|
||||
// side of which will be returned from the Accept call.
|
||||
func NetPipe(ctx context.Context) (Listener, error) {
|
||||
return &netPiper{
|
||||
done: make(chan struct{}),
|
||||
|
|
|
@ -28,7 +28,7 @@ var (
|
|||
ErrInternal = NewError(-32603, "JSON RPC internal error")
|
||||
|
||||
// The following errors are not part of the json specification, but
|
||||
// compliant extensions specific to this implimentation.
|
||||
// compliant extensions specific to this implementation.
|
||||
|
||||
// ErrServerOverloaded is returned when a message was refused due to a
|
||||
// server being temporarily unable to accept any new messages.
|
||||
|
|
|
@ -289,7 +289,7 @@ func mouseEvent(id uintptr, x, y, dx, dy float32, ty, button int32, flags uint32
|
|||
// can produce wheel events in opposite directions, but the
|
||||
// direction matches what other programs on the OS do.
|
||||
//
|
||||
// If we wanted to expose the phsyical device motion in the
|
||||
// If we wanted to expose the physical device motion in the
|
||||
// event we could use [NSEvent isDirectionInvertedFromDevice]
|
||||
// to know if "natural scrolling" is enabled.
|
||||
//
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
// buffer holds an encoded IconVG graphic.
|
||||
//
|
||||
// The decodeXxx methods return the decoded value and an integer n, the number
|
||||
// of bytes that value was encoded in. They return n == 0 if an error occured.
|
||||
// of bytes that value was encoded in. They return n == 0 if an error occurred.
|
||||
//
|
||||
// The encodeXxx methods append to the buffer, modifying the slice in place.
|
||||
type buffer []byte
|
||||
|
|
|
@ -913,7 +913,7 @@ func init() {
|
|||
xgb.NewEventFuncs[33] = ClientMessageEventNew
|
||||
}
|
||||
|
||||
// ClientMessageDataUnion is a represention of the ClientMessageDataUnion union type.
|
||||
// ClientMessageDataUnion is a representation of the ClientMessageDataUnion union type.
|
||||
// Note that to *create* a Union, you should *never* create
|
||||
// this struct directly (unless you know what you're doing).
|
||||
// Instead use one of the following constructors for 'ClientMessageDataUnion':
|
||||
|
|
|
@ -155,7 +155,7 @@ func SplitStoredHashIndex(index int64) (level int, n int64) {
|
|||
n++
|
||||
indexN = x
|
||||
}
|
||||
// The hash we want was commited with record n,
|
||||
// The hash we want was committed with record n,
|
||||
// meaning it is one of (0, n), (1, n/2), (2, n/4), ...
|
||||
level = int(index - indexN)
|
||||
return level, n >> uint(level)
|
||||
|
|
|
@ -260,7 +260,7 @@ func (mv ModuleVulnerabilities) VulnsForPackage(importPath string) []*osv.Entry
|
|||
return packageVulns
|
||||
}
|
||||
|
||||
// VulnsForSymbol returns vulnerabilites for `symbol` in `mv.VulnsForPackage(importPath)`.
|
||||
// VulnsForSymbol returns vulnerabilities for `symbol` in `mv.VulnsForPackage(importPath)`.
|
||||
func (mv ModuleVulnerabilities) VulnsForSymbol(importPath, symbol string) []*osv.Entry {
|
||||
vulns := mv.VulnsForPackage(importPath)
|
||||
if vulns == nil {
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
// 'modVulns' vulnerabilities.
|
||||
//
|
||||
// Returns all findings reachable from pkgs while analyzing each package only once,
|
||||
// prefering findings of shorter import traces. For instance, given call chains
|
||||
// preferring findings of shorter import traces. For instance, given call chains
|
||||
// A() -> B() -> V
|
||||
// A() -> D() -> B() -> V
|
||||
// D() -> B() -> V
|
||||
|
@ -163,7 +163,7 @@ func (chain *callChain) trace() []TraceElem {
|
|||
pos = instrPosition(chain.call)
|
||||
if unresolved(chain.call) {
|
||||
// In case of a statically unresolved call site, communicate to the client
|
||||
// that this was approximatelly resolved to chain.f.
|
||||
// that this was approximately resolved to chain.f.
|
||||
desc = fmt.Sprintf("%s(...) [approx. resolved to %s]", callName(chain.call), chain.f)
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
// VulnerableImports returns vulnerability findings for packages imported by `pkgs`
|
||||
// given the vulnerability and platform info captured in `env`.
|
||||
//
|
||||
// Returns all findings reachable from `pkgs` while analyzing each package only once, prefering
|
||||
// Returns all findings reachable from `pkgs` while analyzing each package only once, preferring
|
||||
// findings of shorter import traces. For instance, given import chains
|
||||
// A -> B -> V
|
||||
// A -> D -> B -> V
|
||||
|
|
Загрузка…
Ссылка в новой задаче