File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
//! Newtypes for working with text sizes/ranges in a more type-safe manner.
2
2
//!
3
3
//! This library can help with two things:
4
- //! * Reducing storage requirenments for offsets and ranges, under the
4
+ //! * Reducing storage requirements for offsets and ranges, under the
5
5
//! assumption that 32 bits is enough.
6
6
//! * Providing standard vocabulary types for applications where text ranges
7
7
//! are pervasive.
8
8
//!
9
9
//! However, you should not use this library simply because you work with
10
- //! strings. In the overhelming majority of cases, using `usize` and
10
+ //! strings. In the overwhelming majority of cases, using `usize` and
11
11
//! `std::ops::Range<usize>` is better. In particular, if you are publishing a
12
12
//! library, using only std types in the interface would make it more
13
13
//! interoperable. Similarly, if you are writing something like a lexer, which
14
- //! produces, but does not *store* text ranges, than sticking to `usize` would
14
+ //! produces, but does not *store* text ranges, then sticking to `usize` would
15
15
//! be better.
16
16
//!
17
17
//! Minimal Supported Rust Version: latest stable.
You can’t perform that action at this time.
0 commit comments