minor documentation fix

This commit is contained in:
husky 2023-07-20 19:36:59 -07:00
parent 32d86a2a5a
commit 63df912d01
No known key found for this signature in database
GPG key ID: 6B3D8CB511646891

View file

@ -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