From 63df912d017745d2e77d2d4809f668450ea01450 Mon Sep 17 00:00:00 2001 From: husky Date: Thu, 20 Jul 2023 19:36:59 -0700 Subject: [PATCH] minor documentation fix --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8449360..32388aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -223,7 +223,10 @@ pub fn ofw_call(entry_fn: EntryFunction, service: NTSTR, num_args: i32, num_rets /// // addr_hi, addr_lo -- okay? /// // however, we must add another cell in order to account for the catch-result /// // (see ieee 1275, 6.3.2.2 Device tree) -/// use ofw::{ntstr, ofw_call_method}; +/// use ofw::{IHandle, ntstr, ofw_call_method}; +/// use ofw::arch::EntryFunction; +/// let entry_fn: EntryFunction = unimplemented!("get the entry function from somewhere"); +/// let instance: IHandle = unimplemented!("get the package instance from somewhere"); /// // addr_hi, addr_lo, catch-result, okay? /// let mut args: [i32; 4] = [0, 0, 0, 0]; /// // note that num_args and num_rets are not the same as the length of args, this is intentional