mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Fix package rac's examples for godoc convention
This commit is contained in:
1 parent
89c2bf655c
commit
774744d2f3
1 file changed
+7
-6
@@ -28,14 +28,14 @@ import (
|
||||
"github.com/google/wuffs/lib/rac"
|
||||
)
|
||||
|
||||
// ExampleILAEnd demonstrates using the low level "rac" package to encode a
|
||||
// RAC+Zlib formatted file with IndexLocationAtEnd.
|
||||
// Example_indexLocationAtEnd demonstrates using the low level "rac" package to
|
||||
// encode a RAC+Zlib formatted file with IndexLocationAtEnd.
|
||||
//
|
||||
// The sibling "raczlib" package provides a higher level API that is easier to
|
||||
// use.
|
||||
//
|
||||
// See the RAC specification for an explanation of the file format.
|
||||
func ExampleILAEnd() {
|
||||
func Example_indexLocationAtEnd() {
|
||||
// Manually construct a zlib encoding of "More!\n", one that uses a literal
|
||||
// block (that's easy to see in a hex dump) instead of a more compressible
|
||||
// Huffman block.
|
||||
@@ -90,14 +90,15 @@ func ExampleILAEnd() {
|
||||
// 00000030 00 00 00 01 01 |.....|
|
||||
}
|
||||
|
||||
// ExampleILAStart demonstrates using the low level "rac" package to encode and
|
||||
// then decode a RAC+Zlib formatted file with IndexLocationAtStart.
|
||||
// Example_indexLocationAtStart demonstrates using the low level "rac" package
|
||||
// to encode and then decode a RAC+Zlib formatted file with
|
||||
// IndexLocationAtStart.
|
||||
//
|
||||
// The sibling "raczlib" package provides a higher level API that is easier to
|
||||
// use.
|
||||
//
|
||||
// See the RAC specification for an explanation of the file format.
|
||||
func ExampleILAStart() {
|
||||
func Example_indexLocationAtStart() {
|
||||
buf := &bytes.Buffer{}
|
||||
w := &rac.Writer{
|
||||
Writer: buf,
|
||||
|
||||
Reference in new issue
Block a user