Skip to content

Commit 603d162

Browse files
committed
chore: fix some function names in comment
Signed-off-by: avoidalone <wuguangdong@outlook.com>
1 parent 320485d commit 603d162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transports/p2p/upnp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func getChildDevice(d *device, deviceType string) *device {
202202
return nil
203203
}
204204

205-
// getChildDevice searches the service list of device for a service with the
205+
// getChildService searches the service list of device for a service with the
206206
// given type.
207207
func getChildService(d *device, serviceType string) *upnpXML {
208208
for i := range d.ServiceList.Service {
@@ -286,7 +286,7 @@ type soapEnvelope struct {
286286
Body soapBody `xml:"Body"`
287287
}
288288

289-
// soapRequests performs a soap request with the given parameters and returns
289+
// soapRequest performs a soap request with the given parameters and returns
290290
// the xml replied stripped of the soap headers. in the case that the request is
291291
// unsuccessful the an error is returned.
292292
func soapRequest(url, function, message string) (replyXML []byte, err error) {

0 commit comments

Comments
 (0)