aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xgbgen')
-rw-r--r--nexgb/xgbgen/expression.go2
-rw-r--r--nexgb/xgbgen/field.go2
-rw-r--r--nexgb/xgbgen/go_struct.go4
-rw-r--r--nexgb/xgbgen/request_reply.go2
4 files changed, 5 insertions, 5 deletions
diff --git a/nexgb/xgbgen/expression.go b/nexgb/xgbgen/expression.go
index 2047b5f..f88232c 100644
--- a/nexgb/xgbgen/expression.go
+++ b/nexgb/xgbgen/expression.go
@@ -322,7 +322,7 @@ func (e *FieldRef) Initialize(p *Protocol) {
}
// EnumRef represents a reference to some enumeration field.
-// EnumKind is the "group" an EnumItem is the name of the specific enumeration
+// EnumKind is the "group" an EnumItem is the name of the specific enumeration
// value inside that group.
type EnumRef struct {
EnumKind Type
diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go
index 78475f8..16760d4 100644
--- a/nexgb/xgbgen/field.go
+++ b/nexgb/xgbgen/field.go
@@ -138,7 +138,7 @@ func (f *ListField) Length() Size {
// Size computes the *size* of a list (in bytes).
// It it typically a simple matter of multiplying the length of the list by
// the size of the type of the list.
-// But if it's a list of struct where the struct has a list field, we use a
+// But if it's a list of struct where the struct has a list field, we use a
// special function written in go_struct.go to compute the size (since the
// size in this case can only be computed recursively).
func (f *ListField) Size() Size {
diff --git a/nexgb/xgbgen/go_struct.go b/nexgb/xgbgen/go_struct.go
index cb765a0..984a336 100644
--- a/nexgb/xgbgen/go_struct.go
+++ b/nexgb/xgbgen/go_struct.go
@@ -27,7 +27,7 @@ func (s *Struct) Define(c *Context) {
}
}
-// Read for a struct creates a function 'ReadStructName' that takes a source
+// Read for a struct creates a function 'ReadStructName' that takes a source
// byte slice (i.e., the buffer) and a destination struct, and returns
// the number of bytes read off the buffer.
// 'ReadStructName' should only be used to read raw reply data from the wire.
@@ -49,7 +49,7 @@ func (s *Struct) Read(c *Context) {
}
// ReadList for a struct creates a function 'ReadStructNameList' that takes
-// a source (i.e., the buffer) byte slice, and a destination slice and returns
+// a source (i.e., the buffer) byte slice, and a destination slice and returns
// the number of bytes read from the byte slice.
func (s *Struct) ReadList(c *Context) {
c.Putln("// %sReadList reads a byte slice into a list of %s values.",
diff --git a/nexgb/xgbgen/request_reply.go b/nexgb/xgbgen/request_reply.go
index 637266b..b8afe48 100644
--- a/nexgb/xgbgen/request_reply.go
+++ b/nexgb/xgbgen/request_reply.go
@@ -88,7 +88,7 @@ func (r *Request) Size(c *Context) Size {
size := newFixedSize(0)
// If this is a core protocol request, we squeeze in an extra byte of
- // data (from the fields below) between the opcode and the size of the
+ // data (from the fields below) between the opcode and the size of the
// request. In an extension request, this byte is always occupied
// by the opcode of the request (while the first byte is always occupied
// by the opcode of the extension).