docs: fix example pregel reducer (#4740)

This commit is contained in:
le-codeur-rapide
2025-05-21 10:38:29 -04:00
committed by GitHub
parent 06607e08ea
commit 8ec29b4df7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ Below are a few different examples to give you a sense of the Pregel API.
def reducer(current, update):
if current:
return current + " | " + "update"
return current + " | " + update
else:
return update
+1 -1
View File
@@ -411,7 +411,7 @@ class Pregel(PregelProtocol):
def reducer(current, update):
if current:
return current + " | " + "update"
return current + " | " + update
else:
return update