internal/gen: docstrings for instruction builders
Piggybacks off the docstrings for constructors in x64 package. Closes #36
This commit is contained in:
@@ -40,9 +40,7 @@ func (c *ctors) Generate(is []inst.Instruction) ([]byte, error) {
|
||||
}
|
||||
|
||||
func (c *ctors) instruction(i inst.Instruction) {
|
||||
for _, line := range doc(i) {
|
||||
c.Printf("// %s\n", line)
|
||||
}
|
||||
c.Comment(doc(i)...)
|
||||
|
||||
s := params(i)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user