Skip to content

Commit 777aef1

Browse files
committed
Fixed capitalization and one incorrect adjective.
1 parent 3cc625e commit 777aef1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/0000-rename-int-uint.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ See **Alternatives B to L** for the other alternatives that are rejected.
7474

7575
## Drawbacks of `isize/usize`:
7676

77-
- the names fail to indicate the precise semantics of the types - *pointer-sized integers*. (And they don't follow the `i32/u32` pattern as faithfully as possible, as `32` indicates the exact size of the types, but `size` in `isize/usize` is vague in this aspect.)
78-
- the names favour some of the types' use cases over the others.
79-
- the names remind people of C's `ssize_t/size_t`, but `isize/usize` don't share the exact same semantics with the C types.
77+
- The names fail to indicate the precise semantics of the types - *pointer-sized integers*. (And they don't follow the `i32/u32` pattern as faithfully as possible, as `32` indicates the exact size of the types, but `size` in `isize/usize` is vague in this aspect.)
78+
- The names favour some of the types' use cases over the others.
79+
- The names remind people of C's `ssize_t/size_t`, but `isize/usize` don't share the exact same semantics with the C types.
8080

8181
Familiarity is a double edged sword here. `isize/usize` are chosen not because they are perfect, but because they represent a good compromise between semantic accuracy, familiarity and code readability. Given good documentation, the drawbacks listed here may not matter much in practice, and the combined familiarity and readability advantage outweighs them all.
8282

@@ -191,7 +191,7 @@ fn slice_or_fail<'b>(&'b self, from: &uptrsz, to: &uptrsz) -> &'b [T]
191191

192192
## K. `ipsz/upsz`:
193193

194-
Now (and only now, which is the problem) it is clear where this final pair of alternatives comes from.
194+
Now (and only now, which is the problem) it is clear where this pair of alternatives comes from.
195195

196196
By shortening `ptr` to `p`, `ipsz/upsz` no longer stress the "pointer" parts in anyway. Instead, the `sz` or "size" parts are (comparatively) stressed. Interestingly, `ipsz/upsz` look similar to `isiz/usiz`.
197197

0 commit comments

Comments
 (0)