Skip to content

Commit 10a1174

Browse files
authored
Fixed missing definition of item
1 parent ed3921a commit 10a1174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Let's say you have a huge nested object and want to see if any item with the wor
166166
```py
167167
from deepdiff import DeepSearch
168168
obj = {"long": "somewhere", "string": 2, 0: 0, "somewhere": "around"}
169-
ds = DeepSearch(obj, item, verbose_level=2)
169+
ds = DeepSearch(obj, "somewhere", verbose_level=2)
170170
print(ds)
171171
```
172172

@@ -188,7 +188,7 @@ Just grep through your objects as you would in shell!
188188
```py
189189
from deepdiff import grep
190190
obj = {"long": "somewhere", "string": 2, 0: 0, "somewhere": "around"}
191-
ds = obj | grep(item)
191+
ds = obj | grep("somewhere")
192192
print(ds)
193193
```
194194

0 commit comments

Comments
 (0)