Skip to content

Commit bb97960

Browse files
committed
Minor writing improvements
1 parent b2894d8 commit bb97960

File tree

1 file changed

+3
-3
lines changed
  • apps/components_guide_web/lib/components_guide_web/templates/web_standards

1 file changed

+3
-3
lines changed

apps/components_guide_web/lib/components_guide_web/templates/web_standards/promise.html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ promisedValue.then(console.log);
2626

2727
In both cases, we will see it logged only once. This is because promises are run once are created eagerly.
2828

29-
Listening to a promise using `.then()` does not affect nor start that promise. It has no side-effect on the source promise.
29+
Listening to a promise using `.then()` neither affects nor starts that promise. It has no side-effect on the source promise.
3030

3131
Once a promise has been created, then you may wait to hear its result one time, fifteen times, or not at all, and the original promise will behave the same.
3232

@@ -161,7 +161,7 @@ async function main() {
161161
main();
162162
```
163163

164-
However, if we use the result from our `fetchPerson()` function (which we be a Promise), and `await` that twice (or more) then we are running the function only once.
164+
However, if we use the result from our `fetchPerson()` function (which we be a Promise), and `await` that twice (or more) then since we are running the function only once we will see the *‘decoding data’* message logged only once too.
165165

166166
```javascript
167167
async function main() {
@@ -194,6 +194,6 @@ function main() {
194194
main();
195195
```
196196

197-
As we learned earlier, listening to a promise using `.then()` does not affect nor start that promise — it has no side-effect on that promise. And `await` behaves the same — it also has no side-effect on the source promise. It simply waits for its eventual value.
197+
As we learned earlier, listening to a promise using `.then()` neither affects nor starts that promise — it has no side-effect on that promise. And `await` behaves the same — it also has no side-effect on the source promise. It simply waits for its eventual value.
198198

199199

0 commit comments

Comments
 (0)