Improve doc comment text

This commit is contained in:
Simon Warta 2020-11-24 11:55:21 +01:00
parent 10206550d8
commit 36a9d2d454
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ export class Client {
*
* Uses HTTP when the URL schema is http or https. Uses WebSockets otherwise.
*
* If the adaptor is not set an auto-detection is performed.
* If the adaptor is not set an auto-detection is attempted.
*/
public static async connect(url: string, adaptor?: Adaptor): Promise<Client> {
const useHttp = url.startsWith("http://") || url.startsWith("https://");
@ -30,7 +30,7 @@ export class Client {
/**
* Creates a new Tendermint client given an RPC client.
*
* If the adaptor is not set, an auto-detection is performed.
* If the adaptor is not set an auto-detection is attempted.
*/
public static async create(rpcClient: RpcClient, adaptor?: Adaptor): Promise<Client> {
// For some very strange reason I don't understand, tests start to fail on some systems

View File

@ -9,13 +9,13 @@ export declare class Client {
*
* Uses HTTP when the URL schema is http or https. Uses WebSockets otherwise.
*
* If the adaptor is not set an auto-detection is performed.
* If the adaptor is not set an auto-detection is attempted.
*/
static connect(url: string, adaptor?: Adaptor): Promise<Client>;
/**
* Creates a new Tendermint client given an RPC client.
*
* If the adaptor is not set, an auto-detection is performed.
* If the adaptor is not set an auto-detection is attempted.
*/
static create(rpcClient: RpcClient, adaptor?: Adaptor): Promise<Client>;
private static detectVersion;