Skip to content

Commit 63faaa0

Browse files
committed
Correct comment
1 parent ca4a624 commit 63faaa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernels1/kernel.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ ssize_t syscall_pipewrite(const char* buf, size_t sz) {
402402
// kernel buffer full, process should try again
403403
return E_AGAIN;
404404
} else {
405-
// write one character
405+
// write one byte
406406
pipebuf[0] = buf[0];
407407
pipebuf_len = 1;
408408
return 1;
@@ -418,7 +418,7 @@ ssize_t syscall_piperead(char* buf, size_t sz) {
418418
// kernel buffer empty, process should try again
419419
return E_AGAIN;
420420
} else {
421-
// read one character
421+
// read one byte
422422
buf[0] = pipebuf[0];
423423
pipebuf_len = 0;
424424
return 1;

0 commit comments

Comments
 (0)