File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub trait SpiDevice<Word: Copy + 'static = u8>: ErrorType {
5353
5454 /// Do a transfer within a transaction.
5555 ///
56- /// This is a convenience method equivalent to `device.transaction(|bus| bus.transfer (read, write))`.
56+ /// This is a convenience method equivalent to `device.transaction(&mut [Operation::Transfer (read, write)] )`.
5757 ///
5858 /// See also: [`SpiDevice::transaction`], [`SpiBus::transfer`]
5959 #[ inline]
@@ -64,7 +64,7 @@ pub trait SpiDevice<Word: Copy + 'static = u8>: ErrorType {
6464
6565 /// Do an in-place transfer within a transaction.
6666 ///
67- /// This is a convenience method equivalent to `device.transaction(|bus| bus.transfer_in_place (buf))`.
67+ /// This is a convenience method equivalent to `device.transaction(&mut [Operation::TransferInPlace (buf)] )`.
6868 ///
6969 /// See also: [`SpiDevice::transaction`], [`SpiBus::transfer_in_place`]
7070 #[ inline]
You can’t perform that action at this time.
0 commit comments