Skip to content

Commit c3b2844

Browse files
chore: fix function name and return value description in SplitAvalanchegoRPCURI comment (#3005)
Signed-off-by: findfluctuate <findfluctuate@outlook.com>
1 parent 30795ec commit c3b2844

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/utils/net.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ func GetIPPort(uri string) (netip.AddrPort, error) {
7979
return netip.ParseAddrPort(uri)
8080
}
8181

82-
// SplitRPCURI splits the RPC URI into `endpoint` and `chain`.
82+
// SplitAvalanchegoRPCURI splits the RPC URI into `endpoint` and `chain`.
8383
// Reverse operation of `fmt.Sprintf("%s/ext/bc/%s", endpoint, chain)`.
84-
// returns the `uri` and `chain` as strings, or an error if the request URI is invalid.
84+
// returns the `endpoint` and `chain` as strings, or an error if the request URI is invalid.
8585
func SplitAvalanchegoRPCURI(requestURI string) (string, string, error) {
8686
// Define the regex pattern
8787
pattern := `^(https?://[^/]+)/ext/bc/([^/]+)/rpc$`

0 commit comments

Comments
 (0)