Skip to content

Commit 21ce041

Browse files
authored
Refactor hist() calls to use dot notation
1 parent 6402cf7 commit 21ce041

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ def hist() -> HashMap:
8383
def hello(ctx: c_void_p) -> c_int64:
8484
process_id = pid()
8585
one = 1
86-
prev = hist().lookup(process_id)
86+
prev = hist.lookup(process_id)
8787
if prev:
8888
previous_value = prev + 1
8989
print(f"count: {previous_value} with {process_id}")
90-
hist().update(process_id, previous_value)
90+
hist.update(process_id, previous_value)
9191
return c_int64(0)
9292
else:
93-
hist().update(process_id, one)
93+
hist.update(process_id, one)
9494
return c_int64(0)
9595

9696

0 commit comments

Comments
 (0)