From c684e3dcc3afa067a94b49b1374ee1f6e041a9f5 Mon Sep 17 00:00:00 2001 From: bloombit Date: Sun, 6 Sep 2026 10:15:01 -0400 Subject: [PATCH] Replace get_function_containing with get_functions_containing --- docs/dev/cookbook.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev/cookbook.md b/docs/dev/cookbook.md index f9aee0051d..9b755c4895 100644 --- a/docs/dev/cookbook.md +++ b/docs/dev/cookbook.md @@ -86,7 +86,7 @@ for func in bv.functions: func = bv.get_functions_by_name(here)[0] # Multiple functions can share the same name! func = bv.get_function_at(here) # Shortcut for the next one func = bv.get_functions_at(here)[0] # Binary Ninja support functions that overlap! -func = bv.get_function_containing(here) # Functions that contain the given address +func = bv.get_functions_containing(here)[0] # Functions that contain the given address # Just a note that using address to work with functions is fine # But when working with ILs, addresses are approximate and can change for any given instruction ```