Skip to content

Commit 6a3ea59

Browse files
authored
doctests: fix step names (#2795)
1 parent 0f3d0f3 commit 6a3ea59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doctests/dt-string.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// EXAMPLE: string_tutorial
1+
// EXAMPLE: set_tutorial
22
// HIDE_START
33
import assert from 'assert';
44
import { createClient } from 'redis';
@@ -10,7 +10,7 @@ await client.connect();
1010
await client.flushDb();
1111
// REMOVE_END
1212

13-
// STEP_START set
13+
// STEP_START set_get
1414
const res1 = await client.set("bike:1", "Deimos");
1515
console.log(res1); // OK
1616
const res2 = await client.get("bike:1");
@@ -22,7 +22,7 @@ assert.equal(res1, 'OK');
2222
assert.equal(res2, 'Deimos');
2323
// REMOVE_END
2424

25-
// STEP_START set_nx_xx
25+
// STEP_START setnx_xx
2626
const res3 = await client.set("bike:1", "bike", {'NX': true});
2727
console.log(res3); // null
2828
console.log(await client.get("bike:1")); // Deimos

0 commit comments

Comments
 (0)