We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83fe4b2 commit 2e458e2Copy full SHA for 2e458e2
ndk/src/midi/mod.rs
@@ -28,7 +28,9 @@ pub enum MidiOpcode {
28
/// The length of the received message. The caller should limit the passed `buffer` slice to
29
/// this length after [`MidiOutputPort::receive()`] returns.
30
/// ```no_run
31
- /// let output_port: MidiOutputPort = ...;
+ /// use ndk::midi::MidiOutputPort;
32
+ ///
33
+ /// let output_port: MidiOutputPort = todo!();
34
/// let mut buffer = [0u8; 128];
35
/// if let Ok(MidiOpcode::Data { length, .. }) = output_port.receive(&mut buffer) {
36
/// let buffer = &buffer[..length];
0 commit comments