Skip to content

Commit db8e839

Browse files
committed
string-offsets: Post-publish README editing pass
1 parent a2735a4 commit db8e839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/string-offsets/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Converts string offsets between UTF-8 bytes, UTF-16 code units, Unicode code poi
44

55
Rust strings are UTF-8, but JavaScript has UTF-16 strings, and in Python, strings are sequences of
66
Unicode code points. It's therefore necessary to adjust string offsets when communicating across
7-
programming language boundaries. [`StringOffsets`] does these adjustments.
7+
programming language boundaries. `StringOffsets` does these adjustments.
88

99
Each `StringOffsets` instance contains offset information for a single string. [Building the data
10-
structure](StringOffsets::new) takes O(n) time and memory, but then most conversions are O(1).
10+
structure](https://docs.rs/string-offsets/latest/string_offsets/struct.StringOffsets.html#method.new) takes O(n) time and memory, but then most conversions are O(1).
1111

1212
["UTF-8 Conversions with BitRank"](https://adaptivepatchwork.com/2023/07/10/utf-conversion/) is a
1313
blog post explaining the implementation.

0 commit comments

Comments
 (0)