~shulhan/asciidoctor-go

fb4449f82b5691154e962a95cad2f0794a22f996 — Shulhan 3 months ago e9b1dce
all: fix signature of [Element.WriteByte]

The WriteByte is the method in that conform [io.ByteWriter].
1 files changed, 2 insertions(+), 1 deletions(-)

M element.go
M element.go => element.go +2 -1
@@ 219,8 219,9 @@ func (el *element) Write(b []byte) {
	el.raw = append(el.raw, b...)
}

func (el *element) WriteByte(b byte) {
func (el *element) WriteByte(b byte) error {
	el.raw = append(el.raw, b)
	return nil
}

func (el *element) WriteString(s string) {