File tree 1 file changed +2
-2
lines changed
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 {
53
53
54
54
/// Do a transfer within a transaction.
55
55
///
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)] )`.
57
57
///
58
58
/// See also: [`SpiDevice::transaction`], [`SpiBus::transfer`]
59
59
#[ inline]
@@ -64,7 +64,7 @@ pub trait SpiDevice<Word: Copy + 'static = u8>: ErrorType {
64
64
65
65
/// Do an in-place transfer within a transaction.
66
66
///
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)] )`.
68
68
///
69
69
/// See also: [`SpiDevice::transaction`], [`SpiBus::transfer_in_place`]
70
70
#[ inline]
You can’t perform that action at this time.
0 commit comments