From e6249e4a085fc8bc2f204f3b2551a2f6b74853b5 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Mon, 9 Mar 2015 16:21:00 +0000 Subject: [PATCH] Variable renaming on code snippets --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 00ec4ddb3..8d232ddbd 100644 --- a/README.rst +++ b/README.rst @@ -20,8 +20,8 @@ In Node :: - var matrixcs = require("matrix-js-sdk"); - var client = matrixcs.createClient("https://matrix.org"); + var sdk = require("matrix-js-sdk"); + var client = sdk.createClient("https://matrix.org"); client.publicRooms(function(err, data) { console.log("Public Rooms: %s", JSON.stringify(data)); }); @@ -35,7 +35,7 @@ Please see the `client server API`_ for more information on the HTTP calls. Matrix Client ------------- -``MatrixClient`` is constructed via ``matrixcs.createClient(args)`` where ``args`` can be: +``MatrixClient`` is constructed via ``sdk.createClient(args)`` where ``args`` can be: - ``baseUrl`` (String) : The home server base URL to make requests to. - ``credentials`` (Object) : Consists of a ``baseUrl`` (String), a ``userId`` (String)