Skip to content

Commit a3ceffc

Browse files
committed
Fix article disagreement introduced by an earlier find/replace ("bidirectional" -> "interactive")
1 parent 2b09344 commit a3ceffc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ NoiseHandshake instances can be constructed using either a NoiseHandshakeBuilder
2626

2727
### Interactive patterns
2828

29-
In the most common case, Noise handshakes implement a interactive pattern in which both parties will send and receive messages to one another once the handshake is complete. As an example, the NN interactive handshake pattern is defined as:
29+
In the most common case, Noise handshakes implement an interactive pattern in which both parties will send and receive messages to one another once the handshake is complete. As an example, the NN interactive handshake pattern is defined as:
3030

3131
```
3232
NN:

src/main/java/com/eatthepath/noise/NoiseHandshake.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
* <h2>Interactive patterns</h2>
3838
*
39-
* <p>In the most common case, Noise handshakes implement a interactive pattern in which both parties will send and
39+
* <p>In the most common case, Noise handshakes implement an interactive pattern in which both parties will send and
4040
* receive messages to one another once the handshake is complete. As an example, the NN interactive handshake pattern
4141
* is defined as:</p>
4242
*
@@ -462,7 +462,7 @@ private int decryptAndHash(final ByteBuffer ciphertext,
462462
* Checks whether this is a handshake for a one-way Noise handshake pattern.
463463
*
464464
* @return {@code true} if this is a handshake for a one-way Noise handshake pattern or {@code false} if this is a
465-
* handshake for a interactive Noise handshake pattern
465+
* handshake for an interactive Noise handshake pattern
466466
*/
467467
public boolean isOneWayHandshake() {
468468
return handshakePattern.isOneWayPattern();
@@ -1345,10 +1345,10 @@ public NoiseHandshake fallbackTo(final String handshakePatternName, @Nullable fi
13451345
}
13461346

13471347
/**
1348-
* Builds a interactive Noise transport object from this handshake. This method may be called exactly once, only if
1349-
* this is a interactive (i.e. not one-way) handshake, and only when the handshake is done.
1348+
* Builds an interactive Noise transport object from this handshake. This method may be called exactly once, only if
1349+
* this is an interactive (i.e. not one-way) handshake, and only when the handshake is done.
13501350
*
1351-
* @return a interactive Noise transport object derived from this completed handshake
1351+
* @return an interactive Noise transport object derived from this completed handshake
13521352
*
13531353
* @throws IllegalStateException if this is a one-way handshake, the handshake has not finished, or this handshake has
13541354
* previously been "split" into a Noise transport object
@@ -1358,7 +1358,7 @@ public NoiseHandshake fallbackTo(final String handshakePatternName, @Nullable fi
13581358
*/
13591359
public NoiseTransport toTransport() {
13601360
if (handshakePattern.isOneWayPattern()) {
1361-
throw new IllegalStateException("Cannot split a handshake for a one-way pattern into a interactive transport instance");
1361+
throw new IllegalStateException("Cannot split a handshake for a one-way pattern into an interactive transport instance");
13621362
}
13631363

13641364
return split();

src/main/java/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h1>Handshakes</h1>
3030

3131
<h2>Interactive patterns</h2>
3232

33-
<p>In the most common case, Noise handshakes implement a interactive pattern in which both parties will send and receive messages to one another once the handshake is complete. As an example, the NN interactive handshake pattern is defined as:</p>
33+
<p>In the most common case, Noise handshakes implement an interactive pattern in which both parties will send and receive messages to one another once the handshake is complete. As an example, the NN interactive handshake pattern is defined as:</p>
3434

3535
<pre>NN:
3636
-&gt; e

0 commit comments

Comments
 (0)