Skip to content

Commit 06dca9a

Browse files
Expand doc-comment on do_resolve
1 parent 05ad047 commit 06dca9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/symbolize/dbghelp.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ unsafe fn resolve_with_inline(
218218
Some(())
219219
}
220220

221-
/// This function is only meant to be called with SymFromAddrW as the argument
221+
/// This function is only meant to be called with certain Windows API functions as its arguments,
222+
/// using closures to simplify away here-unspecified arguments:
223+
/// - `sym_from_addr`: either `SymFromAddrW` or `SymFromInlineContextW`
224+
/// - `get_line_from_addr`: `SymGetLineFromAddrW64` or `SymGetLineFromInlineContextW`
222225
unsafe fn do_resolve(
223226
sym_from_addr: impl FnOnce(*mut SYMBOL_INFOW) -> BOOL,
224227
get_line_from_addr: impl FnOnce(&mut IMAGEHLP_LINEW64) -> BOOL,

0 commit comments

Comments
 (0)