Skip to content

Commit 305f7e0

Browse files
Update README.md
- fixed styles & grammar
1 parent 0346bf2 commit 305f7e0

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
@@ -1172,7 +1172,7 @@ You can download the PDF and Epub version of this repository from the latest run
11721172
| Declarative: Computation does not start until subscription, so they can run whenever you need the result | Executes immediately on creation|
11731173
| Provides multiple values over time | Provides only one |
11741174
| Subscribe method is used for error handling that facilitates centralized and predictable error handling | Push errors to the child promises |
1175-
| Provides chaining and subscription to handle complex applications | Uses only .then() clause |
1175+
| Provides chaining and subscription to handle complex applications | Uses only `.then()` clause |
11761176
11771177
**[⬆ Back to Top](#table-of-contents)**
11781178
@@ -1199,7 +1199,7 @@ You can download the PDF and Epub version of this repository from the latest run
11991199
**[⬆ Back to Top](#table-of-contents)**
12001200
12011201
46. ### How do you perform error handling in observables?
1202-
You can handle errors by specifying an **error callback** on the observer instead of relying on try/catch which are ineffective in asynchronous environment.
1202+
You can handle errors by specifying an **error callback** on the observer instead of relying on `try`/`catch`, which are ineffective in asynchronous environment.
12031203
12041204
For example, you can define error callback as below,
12051205
```javascript
@@ -1211,8 +1211,8 @@ You can download the PDF and Epub version of this repository from the latest run
12111211
12121212
**[⬆ Back to Top](#table-of-contents)**
12131213
1214-
47. ### What is the short hand notation for subscribe method?
1215-
The subscribe() method can accept callback function definitions in line, for next, error, and complete handlers is known as short hand notation or Subscribe method with positional arguments.
1214+
47. ### What is the shorthand notation for subscribe method?
1215+
The `subscribe()` method can accept callback function definitions in line, for `next`, `error`, and `complete` handlers. It is known as shorthand notation or Subscribe method with positional arguments.
12161216
12171217
For example, you can define subscribe method as below,
12181218
```javascript

0 commit comments

Comments
 (0)