Skip to content

Commit 4bbbc2c

Browse files
authored
Some typo fixed.
1 parent 37024a0 commit 4bbbc2c

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,29 @@ Methods that doesn't require access-token can be called directly on the **Telegr
5959
int views = await client.GetViewsAsync("page-path", year: 2016, month: 12);
6060

6161
// Get a page information
62-
Page page = await client.GetPage("page-path", returnContent: true);
62+
Page page = await client.GetPageAsync("page-path", returnContent: true);
6363

6464
// Create a new Telegra.ph Account
65-
Account newAccount = await client.CreateAccount("Sandbox", "Anonymous", "http://sandbox.net");
65+
Account newAccount = await client.CreateAccountAync("Sandbox", "Anonymous", "http://sandbox.net");
6666
```
6767

6868
# Working with NodeElements
6969

70-
According to [Telegraph API page](http://telegra.ph/api#NodeElement): *A **Node** represents a DOM Node. It can be a String which represents a DOM text node or a NodeElement object.*
70+
According to [Telegraph API page](http://telegra.ph/api#NodeElement): *A* **Node** *represents a DOM Node. It can be a String which represents a DOM text node or a NodeElement object.*
7171

72-
To simplify working with this concept, all **Node**s is a **NodeElement** in this library. That is, a string is a NodeElement. A text content like "Hello World!" can thus be expressed as:
72+
To simplify working with this concept while using this library, all **Node**s is a **NodeElement**. This means that, a string is a NodeElement; thus, a text content like **"Hello World!"** can thus be expressed as:
7373

7474
```c#
7575
NodeElement nodeElement = new NodeElement {
76-
Tag = "_text",
77-
Attributes = new Dictionary<string, string> {
78-
{ "value", "Hello World!" }
79-
}
76+
Tag = "_text",
77+
Attributes = new Dictionary<string, string> { { "value", "Hello World!" } }
8078
};
8179
```
82-
or preferably, simply as:
80+
OR preferably (*and the recommended way*), simply as:
8381
```c#
8482
NodeElement nodeElement = "Hello World!";
8583
```
86-
taking advantage of implicit operator overloading for string<-->NodeElement.
84+
This shorthand takes advantage of implicit operator overloading for string<-->NodeElement.
8785

8886
Thus, the following json content:
8987
```json

0 commit comments

Comments
 (0)