Fix typos in documentations.

Fix typos in READMEs, javadoc, comments and code.

Original pull request #642
This commit is contained in:
Marc Wrobel
2022-07-18 16:43:44 +02:00
committed by Jens Schauder
parent 1aec184ff0
commit ce994f9ea0
57 changed files with 83 additions and 83 deletions

View File

@@ -1,5 +1,5 @@
# Spring Data Redis Example
The this example was named a bit misleading as `cluster-sentinel` is a mix of Redis Cluster and Redis Sentinel.
This example was named a bit misleadingly as `cluster-sentinel`, a mix of Redis Cluster and Redis Sentinel.
Find dedicated examples here: [Redis Cluster](../cluster) and [Redis Sentinel](../sentinel).

View File

@@ -6,7 +6,7 @@ To run the code in this sample a running cluster environment is required. Please
## Support for Cluster ##
Cluster Support uses the same building blocks as the non clustered counterpart. We use `application.properties` to point to an initial set of known cluster nodes which will be picked up by the auto configuration.
Cluster Support uses the same building blocks as the non-clustered counterpart. We use `application.properties` to point to an initial set of known cluster nodes which will be picked up by the auto-configuration.
```properties
spring.redis.cluster.nodes[0]=127.0.0.1:30001
@@ -81,7 +81,7 @@ redis/src $ ./redis-cli -c -p 30001
321978... 127.0.0.1:30006 slave 5f3e97... 0 1450765113050 6 connected
```
To shutdown the cluster use the `create-cluster stop` command.
To shut down the cluster use the `create-cluster stop` command.
```bash
redis/utils/create-cluster $ ./create-cluster stop

View File

@@ -2,7 +2,7 @@
This project contains examples for Spring Data specific repository abstraction on top of Redis.
## Repository Suport ##
## Repository Support ##
Redis Repository support allows to convert, store, retrieve and index entities within Redis native data structures. To do, besides the `HASH` containing the actual properties several [Secondary Index](http://redis.io/topics/indexes) structures are set up and maintained.

View File

@@ -90,7 +90,7 @@ class Person {
private Gender gender;
/**
* Since {@link Indexed} is used on {@link Address#getCity()} index structures for {@code persons:address:city} are be
* Since {@link Indexed} is used on {@link Address#getCity()}, index structures for {@code persons:address:city} are
* maintained.
*/
private Address address;

View File

@@ -82,7 +82,7 @@ class ReactiveStreamApiTests {
.as(StepVerifier::create)
.expectNext(2L).verifyComplete();
// XADD errors when timestamp is less then last inserted
// XADD errors when timestamp is less than the last inserted
streamOps.add(SensorData.create("1234", "19.8", "invalid").withId(RecordId.of("0-0")))
.as(StepVerifier::create)
.verifyError(RedisSystemException.class);

View File

@@ -72,7 +72,7 @@ class SyncStreamApiTests {
// XLEN
assertThat(streamOps.size(SensorData.KEY)).isEqualTo(2L);
// XADD errors when timestamp is less then last inserted
// XADD errors when timestamp is less than the last inserted
assertThatExceptionOfType(RedisSystemException.class).isThrownBy(() -> {
streamOps.add(SensorData.create("1234", "19.8", "invalid").withId(RecordId.of("0-0")));
}).withMessageContaining("ID specified");