Skip to content

Commit

Permalink
Rename testable example to follow naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmen committed Aug 25, 2024
1 parent 70a2f8d commit 3533021
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example_amd64_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/dolmen-go/endian"
)

func ExampleLittle() {
func Example_little() {
fmt.Printf("GOARCH=%s: %s\n", runtime.GOARCH, endian.Native)

const n = 0xDeadBeef
Expand All @@ -23,7 +23,7 @@ func ExampleLittle() {
// 0xdeadbeef => [ef be ad de]
}

func ExampleLittleEqual() {
func Example_littleEqual() {
for _, bo := range []binary.ByteOrder{
binary.BigEndian,
binary.LittleEndian,
Expand Down
4 changes: 2 additions & 2 deletions example_arm64_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/dolmen-go/endian"
)

func ExampleLittle() {
func Example_little() {
fmt.Printf("GOARCH=%s: %s\n", runtime.GOARCH, endian.Native)

const n = 0xDeadBeef
Expand All @@ -23,7 +23,7 @@ func ExampleLittle() {
// 0xdeadbeef => [ef be ad de]
}

func ExampleLittleEqual() {
func Example_littleEqual() {
for _, bo := range []binary.ByteOrder{
binary.BigEndian,
binary.LittleEndian,
Expand Down

0 comments on commit 3533021

Please sign in to comment.