From 10dacf1d1669c81c09ea9d92947afdde06793746 Mon Sep 17 00:00:00 2001 From: Jaco Date: Fri, 11 Jun 2021 13:54:10 +0300 Subject: [PATCH] Correct dangling (old-style) HttpProvider docs (#3635) --- packages/rpc-provider/src/http/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rpc-provider/src/http/index.ts b/packages/rpc-provider/src/http/index.ts index 12a4f6cfc6..79514e328c 100644 --- a/packages/rpc-provider/src/http/index.ts +++ b/packages/rpc-provider/src/http/index.ts @@ -14,18 +14,18 @@ const ERROR_SUBSCRIBE = 'HTTP Provider does not have subscriptions, use WebSocke const l = logger('api-http'); /** - * # @polkadot/rpc-provider/https + * # @polkadot/rpc-provider * * @name HttpProvider * - * @description The HTTP Provider allows sending requests using HTTP to a HTTP RPC server TCP port. It does not support subscriptions so you won't be able to listen to events such as new blocks or balance changes. It is usually preferrable using the [[WsProvider]]. + * @description The HTTP Provider allows sending requests using HTTP to a HTTP RPC server TCP port. It does not support subscriptions so you won't be able to listen to events such as new blocks or balance changes. It is usually preferable using the [[WsProvider]]. * * @example *
* * ```javascript * import Api from '@polkadot/api/promise'; - * import HttpProvider from '@polkadot/rpc-provider/http'; + * import { HttpProvider } from '@polkadot/rpc-provider'; * * const provider = new HttpProvider('http://127.0.0.1:9933'); * const api = new Api(provider);