We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pango::itemize()
1 parent bbe4d70 commit dd35a12Copy full SHA for dd35a12
pango/src/functions.rs
@@ -109,7 +109,7 @@ pub fn itemize(
109
"start_index is out of range"
110
);
111
assert!(
112
- length >= 0 && start_index.checked_add(length).unwrap() < total_length,
+ length >= 0 && start_index.checked_add(length).unwrap() <= total_length,
113
"start_index + length is out of range"
114
115
unsafe {
@@ -140,7 +140,7 @@ pub fn itemize_with_base_dir(
140
141
142
143
144
145
146
0 commit comments