From 32ad59de26e0c23dd2d76f03eb848a5a62e7f743 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 3 Oct 2017 16:39:37 +0900 Subject: [PATCH] Fix findInPage() documentation for correcting type definition This update fixes the return type of `findInPage()`, which is currently typed as `void` but actually it should be `number`. --- docs/api/web-contents.md | 8 ++++---- docs/api/webview-tag.md | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 78f7ee333f5b..c356e8eac61f 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -896,10 +896,10 @@ Inserts `text` to the focused element. uppercase letter followed by a lowercase or non-letter. Accepts several other intra-word matches, defaults to `false`. -Starts a request to find all matches for the `text` in the web page and returns -an `Integer` representing the request id used for the request. The result of -the request can be obtained by subscribing to -[`found-in-page`](web-contents.md#event-found-in-page) event. +Returns `Integer` - The request id used for the request. + +Starts a request to find all matches for the `text` in the web page. The result of the request +can be obtained by subscribing to [`found-in-page`](web-contents.md#event-found-in-page) event. #### `contents.stopFindInPage(action)` diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 5fcc3bffd4e6..a24312b96445 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -520,9 +520,10 @@ Inserts `text` to the focused element. uppercase letter followed by a lowercase or non-letter. Accepts several other intra-word matches, defaults to `false`. -Starts a request to find all matches for the `text` in the web page and returns an `Integer` -representing the request id used for the request. The result of the request can be -obtained by subscribing to [`found-in-page`](webview-tag.md#event-found-in-page) event. +Returns `Integer` - The request id used for the request. + +Starts a request to find all matches for the `text` in the web page. The result of the request +can be obtained by subscribing to [`found-in-page`](webview-tag.md#event-found-in-page) event. ### `.stopFindInPage(action)`