From 578cc2e9d5f4ad329c7624f4adb67aa08110953a Mon Sep 17 00:00:00 2001 From: "David W. Dougherty" Date: Thu, 2 Jan 2025 06:47:59 -0800 Subject: [PATCH] DEV: fix code example --- .../stack-with-enterprise/gears-v1/python/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md index 94dac18f82..f65b395ad1 100644 --- a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md +++ b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md @@ -108,7 +108,7 @@ def compare_and_swap(x): gb = GearsBuilder() gb.map(age) # Extract the 'age' field from each hash gb.foreach(compare_and_swap) # Compare the max age to the value stored at age:maximum -gb.register('person:*') # Only process keys matching the pattern 'person:*' +gb.register(prefix='person:*') # Only process keys matching the pattern 'person:*' ``` 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.