A couple grammar fixes
This commit is contained in:
parent
a62d63d49d
commit
fbc61032b2
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ function Usage {
|
|||
USAGE: $0 [--benchmark regexp] [--root] [--gen] <git commit flags...>
|
||||
|
||||
--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
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue