mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
Make range generic
This commit is contained in:
parent
15d3257a29
commit
8c6eb08dcb
10 changed files with 79 additions and 69 deletions
|
@ -598,7 +598,7 @@ impl<'a> GlyphStore {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn iter_glyphs_for_char_range(&'a self, rang: &Range) -> GlyphIterator<'a> {
|
||||
pub fn iter_glyphs_for_char_range(&'a self, rang: &Range<uint>) -> GlyphIterator<'a> {
|
||||
if rang.begin() >= self.entry_buffer.len() {
|
||||
fail!("iter_glyphs_for_range: range.begin beyond length!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue