Skip to content

Commit 2e458e2

Browse files
committed
ndk: Make examples in ndk::midi compilable
1 parent 83fe4b2 commit 2e458e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ndk/src/midi/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ pub enum MidiOpcode {
2828
/// The length of the received message. The caller should limit the passed `buffer` slice to
2929
/// this length after [`MidiOutputPort::receive()`] returns.
3030
/// ```no_run
31-
/// let output_port: MidiOutputPort = ...;
31+
/// use ndk::midi::MidiOutputPort;
32+
///
33+
/// let output_port: MidiOutputPort = todo!();
3234
/// let mut buffer = [0u8; 128];
3335
/// if let Ok(MidiOpcode::Data { length, .. }) = output_port.receive(&mut buffer) {
3436
/// let buffer = &buffer[..length];

0 commit comments

Comments
 (0)