Skip to content

Commit 4471878

Browse files
authored
Fix falsely documented function usage (#34)
1 parent fecd831 commit 4471878

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ hat::scan_result result = hat::find_pattern(pattern, ".text");
8282
// Or another module loaded into the process
8383
std::optional<hat::process::module> ntdll = hat::process::get_module("ntdll.dll");
8484
assert(ntdll.has_value());
85-
hat::scan_result result = hat::find_pattern(pattern, *ntdll, ".text");
85+
hat::scan_result result = hat::find_pattern(pattern, ".text", *ntdll);
8686

8787
// Get the address pointed at by the pattern
8888
const std::byte* address = result.get();

0 commit comments

Comments
 (0)