From 21ce041353c1d046265267b2fbd13c82ced0879e Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi <76248539+r41k0u@users.noreply.github.com> Date: Fri, 10 Oct 2025 20:45:07 +0530 Subject: [PATCH] Refactor hist() calls to use dot notation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 17e4de4..1b4c3f8 100644 --- a/README.md +++ b/README.md @@ -83,14 +83,14 @@ def hist() -> HashMap: def hello(ctx: c_void_p) -> c_int64: process_id = pid() one = 1 - prev = hist().lookup(process_id) + prev = hist.lookup(process_id) if prev: previous_value = prev + 1 print(f"count: {previous_value} with {process_id}") - hist().update(process_id, previous_value) + hist.update(process_id, previous_value) return c_int64(0) else: - hist().update(process_id, one) + hist.update(process_id, one) return c_int64(0)