Skip to content

Commit f04404d

Browse files
authored
Merge pull request google#604 from talkor/patch-1
Remove duplicated header
2 parents e40cae4 + 80d3457 commit f04404d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/promises.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ personFetcher.fetch('John');
224224

225225
## Migrating from callbacks to promises
226226

227-
Migrating from callbacks to promises
228-
------------------------------------
229-
230227
The `result` parameter of the fulfilled promise value is equivalent to the first parameter in [`execute`](/api-client-library/javascript/reference/referencedocs#gapiclientRequestexecute)'s callback. To update your code to use promises, change your code as shown in the before and after examples below.
231228

232229
The following example shows using a callback:
@@ -249,4 +246,4 @@ gapi.client.request({
249246
}).then(function(resp) {
250247
processResponse(resp.result);
251248
});
252-
```
249+
```

0 commit comments

Comments
 (0)