From d4a54d3828193ce22f4e4f2b2c31f23d809dd4fe Mon Sep 17 00:00:00 2001 From: Chris Vest Date: Fri, 28 May 2021 13:54:55 +0200 Subject: [PATCH] Fix typo --- RATIONALE.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RATIONALE.adoc b/RATIONALE.adoc index d212391..710e8b9 100644 --- a/RATIONALE.adoc +++ b/RATIONALE.adoc @@ -76,7 +76,7 @@ In this section we’ll outline the major changes, and most prominent points of Buffers are now `AutoCloseable` and can be used in try-with-resources clauses. Every allocation and acquire call on a buffer (any `Resource` object, really) must be paired with a `close()`, and every `receive()` call on a `Send` must also be paired with a `close()`. -While referene counting is a useful thing for tracking resource life-cycles internally, it is not itself exposed in the public API. +While reference counting is a useful thing for tracking resource life-cycles internally, it is not itself exposed in the public API. Instead, the public API effectively has a boolean open/closed state. This simplifies the API a great deal; buffers are created, and in the end they are closed. The code in between needs to be arranged such that it just avoids ever holding on to buffers that might be closed.