diff --git a/cmd/ractool/data.go b/cmd/ractool/data.go index ce2f2a5e..14f49453 100644 --- a/cmd/ractool/data.go +++ b/cmd/ractool/data.go @@ -28,7 +28,7 @@ The flags should include exactly one of -decode or -encode. When encoding, the input is partitioned into chunks and each chunk is compressed independently. You can specify the target chunk size in terms of either its compressed size or decompressed size. By default (if both --cchunksize and -dchunksize are zero), a 64KiB -cchunksize is used. +-cchunksize and -dchunksize are zero), a 64KiB -dchunksize is used. You can also specify a -cpagesize, which is similar to but not exactly the same concept as alignment. If non-zero, padding is inserted into the output to diff --git a/cmd/ractool/main.go b/cmd/ractool/main.go index cf5b79b9..075a3d1f 100644 --- a/cmd/ractool/main.go +++ b/cmd/ractool/main.go @@ -31,7 +31,7 @@ The flags should include exactly one of -decode or -encode. When encoding, the input is partitioned into chunks and each chunk is compressed independently. You can specify the target chunk size in terms of either its compressed size or decompressed size. By default (if both --cchunksize and -dchunksize are zero), a 64KiB -cchunksize is used. +-cchunksize and -dchunksize are zero), a 64KiB -dchunksize is used. You can also specify a -cpagesize, which is similar to but not exactly the same concept as alignment. If non-zero, padding is inserted into the output to @@ -256,7 +256,7 @@ func encode(r io.Reader) error { if (*cchunksizeFlag != 0) && (*dchunksizeFlag != 0) { return errors.New("must specify none or one of -cchunksize or -dchunksize") } else if (*cchunksizeFlag == 0) && (*dchunksizeFlag == 0) { - *cchunksizeFlag = 65536 // 64 KiB. + *dchunksizeFlag = 65536 // 64 KiB. } switch *codecFlag {