Fix gramatical errors in comments

Removes repetitive words
This commit is contained in:
pengqiseven
2024-03-09 22:18:30 +08:00
committed by Sean DuBois
parent fda6c4f836
commit 94ac7794eb
5 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ package webrtc
// DTLSFingerprint specifies the hash function algorithm and certificate // DTLSFingerprint specifies the hash function algorithm and certificate
// fingerprint as described in https://tools.ietf.org/html/rfc4572. // fingerprint as described in https://tools.ietf.org/html/rfc4572.
type DTLSFingerprint struct { type DTLSFingerprint struct {
// Algorithm specifies one of the the hash function algorithms defined in // Algorithm specifies one of the hash function algorithms defined in
// the 'Hash function Textual Names' registry. // the 'Hash function Textual Names' registry.
Algorithm string `json:"algorithm"` Algorithm string `json:"algorithm"`

View File

@@ -1,5 +1,5 @@
# data-channels-detach # data-channels-detach
data-channels-detach is an example that shows how you can detach a data channel. This allows direct access the the underlying [pion/datachannel](https://github.com/pion/datachannel). This allows you to interact with the data channel using a more idiomatic API based on the `io.ReadWriteCloser` interface. data-channels-detach is an example that shows how you can detach a data channel. This allows direct access the underlying [pion/datachannel](https://github.com/pion/datachannel). This allows you to interact with the data channel using a more idiomatic API based on the `io.ReadWriteCloser` interface.
The example mirrors the data-channels example. The example mirrors the data-channels example.

View File

@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// data-channels-detach is an example that shows how you can detach a data channel. This allows direct access the the underlying [pion/datachannel](https://github.com/pion/datachannel). This allows you to interact with the data channel using a more idiomatic API based on the `io.ReadWriteCloser` interface. // data-channels-detach is an example that shows how you can detach a data channel. This allows direct access the underlying [pion/datachannel](https://github.com/pion/datachannel). This allows you to interact with the data channel using a more idiomatic API based on the `io.ReadWriteCloser` interface.
package main package main
import ( import (

View File

@@ -23,7 +23,7 @@ const (
// ones, such as ones obtained through VPNs. // ones, such as ones obtained through VPNs.
ICECandidateTypeHost ICECandidateTypeHost
// ICECandidateTypeSrflx indicates the the candidate is of Server // ICECandidateTypeSrflx indicates the candidate is of Server
// Reflexive type as described // Reflexive type as described
// https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A candidate type // https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A candidate type
// whose IP address and port are a binding allocated by a NAT for an ICE // whose IP address and port are a binding allocated by a NAT for an ICE
@@ -37,7 +37,7 @@ const (
// NAT to its peer. // NAT to its peer.
ICECandidateTypePrflx ICECandidateTypePrflx
// ICECandidateTypeRelay indicates the the candidate is of Relay type as // ICECandidateTypeRelay indicates the candidate is of Relay type as
// described in https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A // described in https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A
// candidate type obtained from a relay server, such as a TURN server. // candidate type obtained from a relay server, such as a TURN server.
ICECandidateTypeRelay ICECandidateTypeRelay

View File

@@ -81,7 +81,7 @@ type Packet struct {
Offset time.Duration Offset time.Duration
// IsRTCP is true if the payload is RTCP, false if the payload is RTP // IsRTCP is true if the payload is RTCP, false if the payload is RTP
IsRTCP bool IsRTCP bool
// Payload is the binary RTP or or RTCP payload. The contents may not parse // Payload is the binary RTP or RTCP payload. The contents may not parse
// as a valid packet if the contents have been truncated. // as a valid packet if the contents have been truncated.
Payload []byte Payload []byte
} }