8000 Merge pull request #57 from zachrwolfe/inline_cur_cursor · unicode-rs/unicode-segmentation@23771de · GitHub
[go: up one dir, main page]

Skip to content

Commit 23771de

Browse files
authored
Merge pull request #57 from zachrwolfe/inline_cur_cursor
Add inline attribute to GraphemeCursor::cur_cursor()
2 parents d0e3ced + 3203b87 commit 23771de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/grapheme.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ impl GraphemeCursor {
310310
}
311311
}
312312

313+
#[inline]
313314
/// The current offset of the cursor. Equal to the last value provided to
314315
/// `new()` or `set_cursor()`, or returned from `next_boundary()` or
315316
/// `prev_boundary()`.

0 commit comments

Comments
 (0)
0