Skip to content

Commit 5b8ea12

Browse files
dfa1claude
andcommitted
docs: spell honor in American English
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 7d50fae commit 5b8ea12

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/how-to.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ without churning native memory.
4848
The per-call `compress(src, dict)` overloads take the legacy dictionary path,
4949
which ignores the advanced parameters (checksum, window log, long-distance
5050
matching) set on the context. To combine the two, make the dictionary *sticky*
51-
with `loadDictionary` — then the normal `compress` path honours both:
51+
with `loadDictionary` — then the normal `compress` path honors both:
5252

5353
```java
5454
try (ZstdCompressContext cctx = new ZstdCompressContext().level(19).checksum(true)) {

zstd/src/main/java/io/github/dfa1/zstd/ZstdCompressContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public ZstdCompressContext reset(ZstdResetDirective directive) {
109109

110110
/// Loads `dict` as the sticky dictionary for this context, so subsequent
111111
/// [#compress(byte[])] / [#compress(MemorySegment, MemorySegment)] calls
112-
/// compress against it **while still honouring the advanced parameters**
112+
/// compress against it **while still honoring the advanced parameters**
113113
/// (checksum, window log, long-distance matching) set on this context — the
114114
/// combination the per-call `compress(src, dict)` overloads cannot give you,
115115
/// since they route through the legacy dictionary path.
@@ -160,7 +160,7 @@ private ZstdCompressContext loadDictionary(MemorySegment dict, long size) {
160160
/// Attaches a pre-digested `dict` to this context by reference — no per-call
161161
/// digesting and no copy. Subsequent [#compress(byte[])] /
162162
/// [#compress(MemorySegment, MemorySegment)] calls compress against it while
163-
/// honouring this context's advanced parameters; the compression level comes
163+
/// honoring this context's advanced parameters; the compression level comes
164164
/// from the [ZstdCompressDictionary]. This is the hot path for a pooled context
165165
/// recycled with [#reset(ZstdResetDirective)] between frames.
166166
///

zstd/src/main/java/io/github/dfa1/zstd/ZstdDecompressContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public ZstdDecompressContext reset(ZstdResetDirective directive) {
6363

6464
/// Loads `dict` as the sticky dictionary for this context, so subsequent
6565
/// [#decompress(byte[], int)] / [#decompress(MemorySegment, MemorySegment)]
66-
/// calls decode frames compressed against it while still honouring the
66+
/// calls decode frames compressed against it while still honoring the
6767
/// advanced parameters (e.g. window-log max) set on this context.
6868
///
6969
/// The dictionary is copied internally, so `dict` may be discarded afterwards.
@@ -110,7 +110,7 @@ private ZstdDecompressContext loadDictionary(MemorySegment dict, long size) {
110110
/// Attaches a pre-digested `dict` to this context by reference — no per-call
111111
/// digesting and no copy. Subsequent [#decompress(byte[], int)] /
112112
/// [#decompress(MemorySegment, MemorySegment)] calls decode against it while
113-
/// honouring this context's advanced parameters. This is the hot path for a
113+
/// honoring this context's advanced parameters. This is the hot path for a
114114
/// pooled context recycled with [#reset(ZstdResetDirective)] between frames.
115115
///
116116
/// The reference is borrowed: `dict` must stay open for as long as this

zstd/src/test/java/io/github/dfa1/zstd/ZstdDictionaryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ void loadedDictionaryCombinesWithAdvancedParameters() {
450450
plain = ctx.compress(sample);
451451
}
452452

453-
// Then the dictionary is honoured (smaller than dictionaryless) and decodes
453+
// Then the dictionary is honored (smaller than dictionaryless) and decodes
454454
assertThat(frame).hasSizeLessThan(plain.length);
455455
byte[] restored;
456456
try (ZstdDecompressContext dctx = new ZstdDecompressContext()) {

0 commit comments

Comments
 (0)