Skip to content

Commit 6a77382

Browse files
committed
docs: minor additions
1 parent ba01415 commit 6a77382

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/std/ascii.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The 7-bit [ASCII](https://en.wikipedia.org/wiki/ASCII) character encoding standard.
22
//!
3-
//! This is not to be confused with the 8-bit [Extended ASCII](https://en.wikipedia.org/wiki/Extended_ASCII).
3+
//! This is not to be confused with the 8-bit [extended ASCII](https://en.wikipedia.org/wiki/Extended_ASCII) character encoding.
44
//!
55
//! Even though this module concerns itself with 7-bit ASCII,
66
//! functions use `u8` as the type instead of `u7` for convenience and compatibility.
@@ -260,6 +260,7 @@ pub fn isBlank(c: u8) bool {
260260
return (c == ' ') or (c == '\x09');
261261
}
262262

263+
/// Upper-cases the character and returns it as-is if it's already upper-cased.
263264
pub fn toUpper(c: u8) u8 {
264265
if (isLower(c)) {
265266
return c & 0b11011111;
@@ -268,6 +269,7 @@ pub fn toUpper(c: u8) u8 {
268269
}
269270
}
270271

272+
/// Lower-cases the character and returns it as-is if it's already lower-cased.
271273
pub fn toLower(c: u8) u8 {
272274
if (isUpper(c)) {
273275
return c | 0b00100000;

0 commit comments

Comments
 (0)