Skip to content

Commit a97c420

Browse files
knowmostSean-Der
authored andcommitted
Fix typos in multiple comments
1 parent 83cfeea commit a97c420

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

Diff for: api_js.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
package webrtc
88

9-
// API bundles the global funcions of the WebRTC and ORTC API.
9+
// API bundles the global functions of the WebRTC and ORTC API.
1010
type API struct {
1111
settingEngine *SettingEngine
1212
}

Diff for: datachannel.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func (d *DataChannel) onOpen() {
236236
}
237237

238238
// OnDial sets an event handler which is invoked when the
239-
// peer has been dialed, but before said peer has responsed
239+
// peer has been dialed, but before said peer has responded
240240
func (d *DataChannel) OnDial(f func()) {
241241
d.mu.Lock()
242242
d.dialHandlerOnce = sync.Once{}

Diff for: datachannel_js.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (d *DataChannel) SendText(s string) (err error) {
115115
// Before calling Detach you have to enable this behavior by calling
116116
// webrtc.DetachDataChannels(). Combining detached and normal data channels
117117
// is not supported.
118-
// Please reffer to the data-channels-detach example and the
118+
// Please refer to the data-channels-detach example and the
119119
// pion/datachannel documentation for the correct way to handle the
120120
// resulting DataChannel object.
121121
func (d *DataChannel) Detach() (datachannel.ReadWriteCloser, error) {

Diff for: examples/insertable-streams/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example modifies the video with a single-byte XOR cipher before sending, an
44
decrypts in Javascript.
55

66
insertable-streams allows the browser to process encoded video. You could implement
7-
E2E encyption, add metadata or insert a completely different video feed!
7+
E2E encryption, add metadata or insert a completely different video feed!
88

99
## Instructions
1010
### Create IVF named `output.ivf` that contains a VP8 track

Diff for: interceptor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func ConfigureCongestionControlFeedback(mediaEngine *MediaEngine, interceptorReg
127127
return nil
128128
}
129129

130-
// ConfigureSimulcastExtensionHeaders enables the RTP Extenison Headers needed for Simulcast
130+
// ConfigureSimulcastExtensionHeaders enables the RTP Extension Headers needed for Simulcast
131131
func ConfigureSimulcastExtensionHeaders(mediaEngine *MediaEngine) error {
132132
if err := mediaEngine.RegisterHeaderExtension(RTPHeaderExtensionCapability{URI: sdp.SDESMidURI}, RTPCodecTypeVideo); err != nil {
133133
return err

Diff for: internal/util/util.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ const (
1818
// Use global random generator to properly seed by crypto grade random.
1919
var globalMathRandomGenerator = randutil.NewMathRandomGenerator() // nolint:gochecknoglobals
2020

21-
// MathRandAlpha generates a mathmatical random alphabet sequence of the requested length.
21+
// MathRandAlpha generates a mathematical random alphabet sequence of the requested length.
2222
func MathRandAlpha(n int) string {
2323
return globalMathRandomGenerator.GenerateString(n, runesAlpha)
2424
}
2525

26-
// RandUint32 generates a mathmatical random uint32.
26+
// RandUint32 generates a mathematical random uint32.
2727
func RandUint32() uint32 {
2828
return globalMathRandomGenerator.Uint32()
2929
}

Diff for: peerconnection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ func runIfNewReceiver(
13261326
return false
13271327
}
13281328

1329-
// configurepRTPReceivers opens knows inbound SRTP streams from the RemoteDescription
1329+
// configureRTPReceivers opens knows inbound SRTP streams from the RemoteDescription
13301330
func (pc *PeerConnection) configureRTPReceivers(isRenegotiation bool, remoteDesc *SessionDescription, currentTransceivers []*RTPTransceiver) { //nolint:gocognit
13311331
incomingTracks := trackDetailsFromSDP(pc.log, remoteDesc.parsed)
13321332

Diff for: peerconnection_media_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ func TestPeerConnection_Simulcast_RTX(t *testing.T) {
16061606
assert.Greater(t, rtxPacketRead.Load(), int32(0), "no rtx packet read")
16071607
}
16081608

1609-
// Everytime we receieve a new SSRC we probe it and try to determine the proper way to handle it.
1609+
// Everytime we receive a new SSRC we probe it and try to determine the proper way to handle it.
16101610
// In most cases a Track explicitly declares a SSRC and a OnTrack is fired. In two cases we don't
16111611
// know the SSRC ahead of time
16121612
// * Undeclared SSRC in a single media section (https://github.com/pion/webrtc/issues/880)

Diff for: sdp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func trackDetailsFromSDP(log logging.LeveledLogger, s *sdp.SessionDescription) (
8585
tracksInMediaSection := []trackDetails{}
8686
rtxRepairFlows := map[uint64]uint64{}
8787

88-
// Plan B can have multiple tracks in a signle media section
88+
// Plan B can have multiple tracks in a single media section
8989
streamID := ""
9090
trackID := ""
9191

0 commit comments

Comments
 (0)