Skip to content

Commit f632f7f

Browse files
dmitshurgopherbot
authored andcommitted
tiff, tiff/lzw, vector: use single space in comments
Go style converged on using a single space after periods (see CL 20022). Fix a couple places here that weren't consistent. Change-Id: I856a34ee8a24bd033525baca55afd869158dd9ff Reviewed-on: https://go-review.googlesource.com/c/image/+/469195 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent e6c2a4c commit f632f7f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tiff/lzw/reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ The tif_lzw.c file in the libtiff C library has this comment:
1818
1919
----
2020
The 5.0 spec describes a different algorithm than Aldus
21-
implements. Specifically, Aldus does code length transitions
21+
implements. Specifically, Aldus does code length transitions
2222
one code earlier than should be done (for real LZW).
2323
Earlier versions of this library implemented the correct
2424
LZW algorithm, but emitted codes in a bit order opposite
25-
to the TIFF spec. Thus, to maintain compatibility w/ Aldus
25+
to the TIFF spec. Thus, to maintain compatibility w/ Aldus
2626
we interpret MSB-LSB ordered codes to be images written w/
2727
old versions of this library, but otherwise adhere to the
2828
Aldus "off by one" algorithm.

tiff/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ type Options struct {
280280
Compression CompressionType
281281
// Predictor determines whether a differencing predictor is used;
282282
// if true, instead of each pixel's color, the color difference to the
283-
// preceding one is saved. This improves the compression for certain
283+
// preceding one is saved. This improves the compression for certain
284284
// types of images and compressors. For example, it works well for
285285
// photos with Deflate compression.
286286
Predictor bool

vector/acc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ var sixteen float32 = 16
292292
// 0.0142602495543672
293293
// 0.014260249212384224
294294
//
295-
// On GOARCH=wasm, printing x and y gives:
295+
// On GOARCH=wasm, printing x and y gives:
296296
//
297297
// 0.0142602495543672
298298
// 0.0142602495543672

0 commit comments

Comments
 (0)