Skip to content

Commit 048c021

Browse files
authored
DEV: fix code example (#1016)
1 parent 4d3426a commit 048c021

File tree

1 file changed

+1
-1
lines changed
  • content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python

1 file changed

+1
-1
lines changed

content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def compare_and_swap(x):
108108
gb = GearsBuilder()
109109
gb.map(age) # Extract the 'age' field from each hash
110110
gb.foreach(compare_and_swap) # Compare the max age to the value stored at age:maximum
111-
gb.register('person:*') # Only process keys matching the pattern 'person:*'
111+
gb.register(prefix='person:*') # Only process keys matching the pattern 'person:*'
112112
```
113113

114114
You can see here that we define two methods: `age()` and `compare_and_swap()`. Even if you're not familiar with Python, you should be able to see what the methods do.

0 commit comments

Comments
 (0)