Skip to content

Commit 78b12f2

Browse files
committed
Fix sample data in set_and_get example
1 parent f06884d commit 78b12f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doctests/string_set_get.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
r = redis.Redis(host="localhost", port=6379, db=0, decode_responses=True)
66
# HIDE_END
77

8-
res = r.set("foo", "bar")
8+
res = r.set("bike:1", "Process 134")
99
print(res)
1010
# >>> True
1111
# REMOVE_START
1212
assert res
1313
# REMOVE_END
1414

15-
res = r.get("foo")
15+
res = r.get("bike:1")
1616
print(res)
17-
# >>> "bar"
17+
# >>> "Process 134"
1818
# REMOVE_START
19-
assert res == "bar"
19+
assert res == "Process 134"
2020
# REMOVE_END

0 commit comments

Comments
 (0)