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

chore: fix some comments #1223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion cmd/hiveview/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func insertAfterTag(r io.Reader, w io.Writer, tagName, content string) error {
}
}

// modifyScripts changes the 'src' URL of all script tags using the given function.
// modifyHTML changes the 'src' URL of all html tags using the given function.
func modifyHTML(r io.Reader, w io.Writer, modify func(tag *html.Token, errlog io.Writer)) error {
var errlog bytes.Buffer
z := html.NewTokenizer(r)
Expand Down
2 changes: 1 addition & 1 deletion hivesim/hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (sim *Simulation) ClientEnodeURL(testSuite SuiteID, test TestID, node strin
return sim.ClientEnodeURLNetwork(testSuite, test, node, "bridge")
}

// ClientEnodeURLCustomNetwork returns the enode URL of a running client in a custom network.
// ClientEnodeURLNetwork returns the enode URL of a running client in a custom network.
func (sim *Simulation) ClientEnodeURLNetwork(testSuite SuiteID, test TestID, node string, network string) (string, error) {
if sim.docs != nil {
return "", errors.New("ClientEnodeURLNetwork is not supported in docs mode")
Expand Down
2 changes: 1 addition & 1 deletion hivesim/testapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *Client) EnodeURL() (string, error) {
return c.test.Sim.ClientEnodeURL(c.test.SuiteID, c.test.TestID, c.Container)
}

// EnodeURL returns the peer-to-peer endpoint of the client on a specific network.
// EnodeURLNetwork returns the peer-to-peer endpoint of the client on a specific network.
func (c *Client) EnodeURLNetwork(network string) (string, error) {
return c.test.Sim.ClientEnodeURLNetwork(c.test.SuiteID, c.test.TestID, c.Container, network)
}
Expand Down