chore: correct typos and align struct field tags (#12)

Fixes typos in package documentation and variable names. Aligns 
struct field tags in examples and tests for better readability.
This commit is contained in:
2025-06-11 03:15:29 +01:00
committed by GitHub
parent 64d24259e3
commit 1b8fb22499
10 changed files with 53 additions and 53 deletions

View File

@@ -6,7 +6,7 @@ import (
"io"
)
// Binary can render values which implment the encoding.BinaryMarshaler
// Binary can render values which implement the encoding.BinaryMarshaler
// interface.
type Binary struct{}
@@ -15,8 +15,8 @@ var (
_ FormatsHandler = (*Binary)(nil)
)
// Render writes result of calling MarshalBinary() on v. If v does not implment
// encoding.BinaryMarshaler the ErrCannotRander error will be returned.
// Render writes result of calling MarshalBinary() on v. If v does not implement
// encoding.BinaryMarshaler the ErrCannotRender error will be returned.
func (br *Binary) Render(w io.Writer, v any) error {
x, ok := v.(encoding.BinaryMarshaler)
if !ok {