Skip to content

Commit e5bae0d

Browse files
Fixing some sentences for Active voice & trailing periods.
1 parent 1f2312f commit e5bae0d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

modules/hello-world/pages/start-using-sdk.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ include::devguide:example$java/StartUsingCapella.java[tag=json,indent=0]
333333

334334
=== Insert (Create) and Upsert
335335

336-
`insert` and `upsert` both creates a new document.
337-
The difference between the two is that if the document key already exists, the `insert` operation fails and displays the `DocumentExistsException` error.
336+
`insert` and `upsert` both create a new document.
337+
The difference is that if the document key already exists, the `insert` operation fails and displays the `DocumentExistsException` error.
338338
However, the `upsert` operation succeeds and replaces the content.
339339

340-
Always provide a unique ID as the key, and use a UUID here:
340+
Always provide a unique ID as the key, and use a UUID as shown below.
341341

342342
.Creating a new document
343343
[source,java]
@@ -350,7 +350,7 @@ include::devguide:example$java/StartUsingCapella.java[tag=upsert,indent=0]
350350
The `get` method reads a document from a collection.
351351
// If the collection does not have a document with this ID, the `get` method also throws `DocumentNotFoundException`.
352352

353-
Wrapping the method in a `Try` / `Catch` is a good way to handle exceptions:
353+
Wrapping the method in a `Try` / `Catch` is a good way to handle exceptions.
354354

355355
[source,java]
356356
----
@@ -437,19 +437,19 @@ Like `replace`, `remove` also optionally takes the CAS value if you want to make
437437
== Data Modeling
438438

439439
Documents are organized into collections -- collections of documents that belong together.
440-
You get to decide what it means to "belong."
440+
You get to decide what it means to "belong".
441441
Developers usually put documents of the same type in the same collection.
442442

443443
For example, consider you have two types of documents: customers and invoices.
444-
You could put the customer documents in a collection called `customers`, and the invoice documents in a collection called `invoices`.
444+
You can put the customer documents in a collection named `customers`, and the invoice documents in a collection named `invoices`.
445445

446446
Each document belongs to one collection.
447447
A document's ID is unique _within_ the collection.
448448

449449
Different scopes hold collections with different names.
450450
There is no relationship between collections in different scopes.
451451
Each collection belongs to just one scope and
452-
a collection's name is unique within the scope.
452+
the collection name is unique within the scope.
453453

454454

455455
More details can be found on the xref:concept-docs:data-model.adoc[Data Model page].
@@ -485,7 +485,7 @@ both
485485

486486
== Next Steps
487487

488-
Now you're up and running, try one of the following:
488+
Now that your setup is up and running, try one of the following:
489489

490490
* Our xref:hello-world:sample-application.adoc[Travel Sample Application] demonstrates all the basics you need to know.
491491
* Explore xref:howtos:kv-operations.adoc[Key Value Operations] (CRUD) against a document database.
@@ -498,7 +498,7 @@ Now you're up and running, try one of the following:
498498

499499
////
500500
The Scala SDK includes three APIs.
501-
The examples above show the simple blocking API, for simplicity. However, you can also perform all operations in an async style using Scala `Future`, and a reactive style using Project Reactor `SMono` and `SFlux`.
501+
The examples above show the simple blocking API, for simplicity. However, you can also perform all the operations in an async style using Scala `Future`, and a reactive style using Project Reactor `SMono` and `SFlux`.
502502
For more information, see xref:howtos:concurrent-async-apis.adoc[Choosing an API].
503503
////
504504

0 commit comments

Comments
 (0)