From fbc61032b24accd01f4a7571f5b74da903d8e49f Mon Sep 17 00:00:00 2001 From: Roman A <121314722+GameRoMan@users.noreply.github.com> Date: Thu, 29 May 2025 19:58:15 +0100 Subject: [PATCH] A couple grammar fixes --- management/service.go | 2 +- vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go | 2 +- vendor/github.com/gobwas/httphead/lexer.go | 6 +++--- vendor/github.com/google/gopacket/doc.go | 2 +- vendor/github.com/google/gopacket/gc | 4 ++-- vendor/github.com/google/gopacket/layers/ip4.go | 2 +- vendor/github.com/google/gopacket/time.go | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/management/service.go b/management/service.go index dfee0aea..af0461bd 100644 --- a/management/service.go +++ b/management/service.go @@ -296,7 +296,7 @@ func (m *ManagementService) logs(w http.ResponseWriter, r *http.Request) { // Expect the first incoming request startEvent, ok := IntoClientEvent[EventStartStreaming](event, StartStreaming) if !ok { - m.log.Warn().Msgf("expected start_streaming as first recieved event") + m.log.Warn().Msgf("expected start_streaming as first received event") m.log.Err(c.Close(StatusInvalidCommand, reasonInvalidCommand)).Send() return } diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go index 0668a66c..329284af 100644 --- a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +++ b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go @@ -233,7 +233,7 @@ func (r *roffRenderer) handleItem(w io.Writer, node *blackfriday.Node, entering } else if node.ListFlags&blackfriday.ListTypeDefinition != 0 { // state machine for handling terms and following definitions // since blackfriday does not distinguish them properly, nor - // does it seperate them into separate lists as it should + // does it separate them into separate lists as it should if !r.defineTerm { out(w, arglistTag) r.defineTerm = true diff --git a/vendor/github.com/gobwas/httphead/lexer.go b/vendor/github.com/gobwas/httphead/lexer.go index 729855ed..4973f3e3 100644 --- a/vendor/github.com/gobwas/httphead/lexer.go +++ b/vendor/github.com/gobwas/httphead/lexer.go @@ -63,7 +63,7 @@ func (l *Scanner) Next() bool { } // FetchUntil fetches ItemOctet from current scanner position to first -// occurence of the c or to the end of the underlying data. +// occurrence of the c or to the end of the underlying data. func (l *Scanner) FetchUntil(c byte) bool { l.resetItem() if l.pos == len(l.data) { @@ -109,7 +109,7 @@ func (l *Scanner) Advance(n int) bool { return true } -// Skip skips all bytes until first occurence of c. +// Skip skips all bytes until first occurrence of c. func (l *Scanner) Skip(c byte) { if l.err { return @@ -125,7 +125,7 @@ func (l *Scanner) Skip(c byte) { } } -// SkipEscaped skips all bytes until first occurence of non-escaped c. +// SkipEscaped skips all bytes until first occurrence of non-escaped c. func (l *Scanner) SkipEscaped(c byte) { if l.err { return diff --git a/vendor/github.com/google/gopacket/doc.go b/vendor/github.com/google/gopacket/doc.go index b46e43df..169538d5 100644 --- a/vendor/github.com/google/gopacket/doc.go +++ b/vendor/github.com/google/gopacket/doc.go @@ -327,7 +327,7 @@ to decode. Though being versatile, in some cases this solution may be not so optimal. For example, if you have only few layers faster operations may be provided by sparse array indexing or linear array scan. -To accomodate these scenarios, DecodingLayerContainer interface is introduced +To accommodate these scenarios, DecodingLayerContainer interface is introduced along with its implementations: DecodingLayerSparse, DecodingLayerArray and DecodingLayerMap. You can specify a container implementation to DecodingLayerParser with SetDecodingLayerContainer method. Example: diff --git a/vendor/github.com/google/gopacket/gc b/vendor/github.com/google/gopacket/gc index b1d8d2e1..d40a8eb1 100644 --- a/vendor/github.com/google/gopacket/gc +++ b/vendor/github.com/google/gopacket/gc @@ -23,7 +23,7 @@ function Usage { USAGE: $0 [--benchmark regexp] [--root] [--gen] --benchmark: Run benchmark comparisons against last benchmark'd commit ---root: Run tests that require root priviledges +--root: Run tests that require root privileges --gen: Generate code for MACs/ports by pulling down external data Note, some 'git commit' flags are necessary, if all else fails, pass in -a @@ -96,7 +96,7 @@ set -e set -x if [ ! -z "$ROOT" ]; then - echo "Running SUDO to get root priviledges for root tests" + echo "Running SUDO to get root privileges for root tests" sudo echo "have root" fi diff --git a/vendor/github.com/google/gopacket/layers/ip4.go b/vendor/github.com/google/gopacket/layers/ip4.go index 2b3c0c6b..1461693c 100644 --- a/vendor/github.com/google/gopacket/layers/ip4.go +++ b/vendor/github.com/google/gopacket/layers/ip4.go @@ -209,7 +209,7 @@ func (ip *IPv4) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { // Set up an initial guess for contents/payload... we'll reset these soon. ip.BaseLayer = BaseLayer{Contents: data} - // This code is added for the following enviroment: + // This code is added for the following environment: // * Windows 10 with TSO option activated. ( tested on Hyper-V, RealTek ethernet driver ) if ip.Length == 0 { // If using TSO(TCP Segmentation Offload), length is zero. diff --git a/vendor/github.com/google/gopacket/time.go b/vendor/github.com/google/gopacket/time.go index 6d116cdf..49b87c5b 100644 --- a/vendor/github.com/google/gopacket/time.go +++ b/vendor/github.com/google/gopacket/time.go @@ -64,7 +64,7 @@ var TimestampResolutionCaptureInfo = TimestampResolutionNanosecond // PacketSourceResolution is an interface for packet data sources that // support reporting the timestamp resolution of the aqcuired timestamps. // Returned timestamps will always have NanosecondTimestampResolution due -// to the use of time.Time, but scaling might have occured if acquired +// to the use of time.Time, but scaling might have occurred if acquired // timestamps have a different resolution. type PacketSourceResolution interface { // Resolution returns the timestamp resolution of acquired timestamps before scaling to NanosecondTimestampResolution.