Skip to content

Commit

Permalink
docs: minor typos (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
azinoviev committed Dec 13, 2020
1 parent caa4b76 commit f04ee5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ Promise.all(slaves.map(node => node.flushdb()))
const masters = cluster.nodes("master");
Promise.all(masters.map(node => node.keys()).then(keys => {
// keys: [['key1', 'key2'], ['key3', 'key4']]
});
}));
```

### NAT Mapping
Expand Down
2 changes: 1 addition & 1 deletion lib/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default class Command implements ICommand {
*
* @private
* @param {Function} resolve The resolve function of the Promise
* @returns {Function} A funtion to transform and resolve a value
* @returns {Function} A function to transform and resolve a value
* @memberof Command
*/
private _convertValue(resolve: Function): (result: any) => void {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/send_command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe("send command", function () {

it("should support utf8", function (done) {
const redis = new Redis();
redis.set(Buffer.from("你好"), new String("你好"));
redis.set(Buffer.from("你好"), String("你好"));
redis.getBuffer("你好", function (err, result) {
expect(result.toString()).to.eql("你好");
redis.get("你好", function (err, result) {
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/mock_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class MockServer extends EventEmitter {
this.write(c, this.slotTable);
return;
}
const flags: Flags = {};
const flags: IFlags = {};
const handlerResult = this.handler && this.handler(reply, c, flags);
this.write(c, handlerResult);
if (flags.disconnect) {
Expand Down

0 comments on commit f04ee5c

Please sign in to comment.