From 489347948543d59f6ec67ee64373fa78e851404e Mon Sep 17 00:00:00 2001 From: Robbert van der Helm <mail@robbertvanderhelm.nl> Date: Mon, 7 Nov 2022 22:47:00 +0100 Subject: [PATCH] Clarify integer range conventions in docs This resolves #42. --- src/midi.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/midi.rs b/src/midi.rs index d39e467c..c38c507b 100644 --- a/src/midi.rs +++ b/src/midi.rs @@ -26,7 +26,8 @@ pub enum MidiConfig { /// [`util`][crate::util] module for convenient conversion functions. /// /// All of the timings are sample offsets withing the current buffer. All sample, channel and note -/// numbers are zero-indexed. +/// numbers are zero-indexed. All integer `from n to m` are exclusive, and they are equivalent to +/// the `n..m` range in Rust. #[derive(Debug, Clone, Copy, PartialEq)] #[non_exhaustive] pub enum NoteEvent {