lib: fix "go test" example names

This backports commit 689f84213f from the
main branch (working on an unstable v0.4) to the v0.3 branch.
This commit is contained in:
Nigel Tao committed 2026-10-20 14:25:29 +11:00
1 parent 32a23a9bb5
commit 5527993842
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ import (
"github.com/google/wuffs/lib/litonlylzma"
)
func ExampleRoundTripLZMA() {
func Example_roundTripLZMA() {
original := []byte("Hello world.\n")
compressed, err := litonlylzma.FileFormatLZMA.Encode(nil, original)
if err != nil {
@@ -49,7 +49,7 @@ func ExampleRoundTripLZMA() {
// Hello world.
}
func ExampleRoundTripXz() {
func Example_roundTripXz() {
original := []byte("Hello world.\n")
compressed, err := litonlylzma.FileFormatXz.Encode(nil, original)
if err != nil {
+1 -1
View File
@@ -25,7 +25,7 @@ import (
"github.com/google/wuffs/lib/zlibcut"
)
func ExampleCut() {
func Example() {
const sonnet18 = "" +
"Shall I compare thee to a summer’s day?\n" +
"Thou art more lovely and more temperate.\n" +