Skip to content

Commit

Permalink
Fix gramatical errors in comments
Browse files Browse the repository at this point in the history
Removes repetitive words
  • Loading branch information
ourwarmhouse committed Mar 17, 2024
1 parent 836f533 commit 587761e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dtlsfingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package webrtc
// DTLSFingerprint specifies the hash function algorithm and certificate
// fingerprint as described in https://tools.ietf.org/html/rfc4572.
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.
Algorithm string `json:"algorithm"`

Expand Down
2 changes: 1 addition & 1 deletion examples/data-channels-detach/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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.

Expand Down
2 changes: 1 addition & 1 deletion examples/data-channels-detach/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// 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

import (
Expand Down
4 changes: 2 additions & 2 deletions icecandidatetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
// ones, such as ones obtained through VPNs.
ICECandidateTypeHost

// ICECandidateTypeSrflx indicates the the candidate is of Server
// ICECandidateTypeSrflx indicates the candidate is of Server
// Reflexive type as described
// 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
Expand All @@ -37,7 +37,7 @@ const (
// NAT to its peer.
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
// candidate type obtained from a relay server, such as a TURN server.
ICECandidateTypeRelay
Expand Down
2 changes: 1 addition & 1 deletion pkg/media/rtpdump/rtpdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type Packet struct {
Offset time.Duration
// IsRTCP is true if the payload is RTCP, false if the payload is RTP
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.
Payload []byte
}
Expand Down

0 comments on commit 587761e

Please sign in to comment.