Skip to content

Commit ecedd00

Browse files
0xflotusdanielmai
authored andcommitted
(readme): fixed small errors and code highlighting (#110)
1 parent b7e22ac commit ecedd00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ which provides two main ways to set data: JSON and RDF N-Quad. You can choose
165165
whichever way is convenient.
166166

167167
We're going to use JSON. First we define a `Person` class to represent a person.
168-
This data will be seralized into JSON.
168+
This data will be serialized into JSON.
169169

170170
```java
171171
class Person {
@@ -416,7 +416,7 @@ instantiating the `DgraphAsyncClient` class. The usage is almost exactly the
416416
same as the `DgraphClient` (show in previous section) class. The main
417417
differences is that the `DgraphAsyncClient#newTransacation()` returns an
418418
`AsyncTransaction` class. The API for `AsyncTransaction` is exactly
419-
`Transcation`. The only difference is that instead of returning the results
419+
`Transaction`. The only difference is that instead of returning the results
420420
directly, it returns immediately with a corresponding `CompletableFuture<T>`
421421
object. This object represents the computation which runs asynchronously to
422422
yield the result in the future. Read more about `CompletableFuture<T>` in the
@@ -428,11 +428,11 @@ Here is the asynchronous version of the code above, which runs a query.
428428

429429
```java
430430
// Query
431-
String query =
431+
String query =
432432
"query all($a: string){\n" +
433433
" all(func: eq(name, $a)) {\n" +
434434
" name\n" +
435-
}\n" +
435+
"}\n" +
436436
"}\n";
437437

438438
Map<String, String> vars = Collections.singletonMap("$a", "Alice");

0 commit comments

Comments
 (0)