Skip to content

Commit d42dd40

Browse files
seanfisherbryanmacfarlane
authored andcommitted
Fix incorrect variable name in README.me (#66)
1 parent 99f766f commit d42dd40

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ Typings (.d.ts) are now distributed with the api, so intellisense and compile su
2121

2222
### Create a connection
2323
```javascript
24-
var vsts = require('vso-node-api');
24+
let vsts = require('vso-node-api');
2525

2626
// your collection url
27-
var collectionUrl = "https://fabrikam.visualstudio.com/defaultcollection";
27+
let collectionUrl = "https://fabrikam.visualstudio.com/defaultcollection";
2828

2929
// ideally from config
3030
let token: string = "cbdeb34vzyuk5l4gxc4qfczn3lko3avfkfqyb47etahq6axpcqha";
3131

32-
let authHandler = vm.getPersonalAccessTokenHandler(token);
33-
var connect = new vsts.WebApi(collectionUrl, creds);
32+
let authHandler = vsts.getPersonalAccessTokenHandler(token);
33+
let connect = new vsts.WebApi(collectionUrl, authHandler);
3434
```
3535

3636
### Get an instance of a client

0 commit comments

Comments
 (0)