Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphql, internal: fix typos in comments #27184

Merged
merged 4 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
⏪️ Revert changes
  • Loading branch information
DavidRomanovizc committed Apr 28, 2023
commit fdc9e52cc8187ee01521242075050c14ff34ca87
2 changes: 1 addition & 1 deletion internal/build/gotool.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (g *GoToolchain) Install(gobin string, args ...string) *exec.Cmd {
// Ensure GOPATH is set because go install seems to absolutely require it. This uses
// 'go env' because it resolves the default value when GOPATH is not set in the
// environment. Ignore errors running go env and leave any complaining about GOPATH to
// the installation command.
// the install command.
pathTool := g.goTool("env", "GOPATH")
output, _ := pathTool.Output()
tool.Env = append(tool.Env, "GOPATH="+string(output))
Expand Down
2 changes: 1 addition & 1 deletion internal/debug/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (h *HandlerT) StartGoTrace(file string) error {
return nil
}

// StopGoTrace StopTrace stops an ongoing trace.
// StopGoTrace stops an ongoing trace.
func (h *HandlerT) StopGoTrace() error {
h.mu.Lock()
defer h.mu.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion internal/jsre/jsre.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ loop:
}
}

// Do execute the given function on the JS event loop.
// Do executes the given function on the JS event loop.
// When the runtime is stopped, fn will not execute.
func (re *JSRE) Do(fn func(*goja.Runtime)) {
done := make(chan bool)
Expand Down
2 changes: 1 addition & 1 deletion internal/jsre/pretty.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (ctx ppctx) fields(obj *goja.Object) []string {
key := SafeGet(obj, k)
if key == nil {
// The value corresponding to that key could not be found
// typically because it is backed by an RPC call that is
// (typically because it is backed by an RPC call that is
// not supported by this instance. Add it to the list of
// values so that it appears as `undefined` to the user.
vals = append(vals, k)
Expand Down
2 changes: 1 addition & 1 deletion internal/shutdowncheck/shutdown_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ShutdownTracker struct {
}

// NewShutdownTracker creates a new ShutdownTracker instance and has
// no other side effect.
// no other side-effect.
func NewShutdownTracker(db ethdb.Database) *ShutdownTracker {
return &ShutdownTracker{
db: db,
Expand Down
2 changes: 1 addition & 1 deletion les/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// Package less implements the Light Ethereum Subprotocol.
// Package les implements the Light Ethereum Subprotocol.
package les

import (
Expand Down
2 changes: 1 addition & 1 deletion les/txrelay.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (ltrx *lesTxRelay) registerPeer(p *serverPeer) {
ltrx.lock.Lock()
defer ltrx.lock.Unlock()

// Short circuit if the peer is announced only.
// Short circuit if the peer is announce only.
if p.onlyAnnounce {
return
}
Expand Down