Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
SKTT1Ryze committed May 2, 2022
1 parent 728d846 commit 12f19ad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Linux io_uring based c++ 20 coroutine library
In this case, it refers to a basic coroutine library, which
relies on C++ 20 coroutine syntax and Linux io_uring feature,
aiming to build easy, flexible and high-performance
`asynchorous programming framework` in C++.
`asynchronous programming framework` in C++.

## Example
```C++
Expand Down
38 changes: 19 additions & 19 deletions src/kuro.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using Callback = std::function<void(struct io_uring_sqe*)>;

/*
* Coroutine is usually treated as resumable function in C++
* and asynchorous task in Rust.
* and asynchronous task in Rust.
*
* [`Task`] here refers to return type of coroutine function:
* ```C++
Expand Down Expand Up @@ -105,7 +105,7 @@ class Task {
* auto task0 = co_read();
* auto task1 = co_read();
*
* // asynchorous execute
* // asynchorously execute
* async_execute(handle);
*
* // both of task0 and task1 have been done.
Expand Down Expand Up @@ -151,7 +151,7 @@ class Op : public Future<__s32> {
};

/*
* Asynchorous and awaitable object equal to read(2).
* Asynchronous and awaitable object equal to read(2).
*
* example:
* ```C++
Expand Down Expand Up @@ -180,7 +180,7 @@ class Read : public Op<int> {
};

/*
* Asynchorous and awaitable object equal to readv(2).
* Asynchronous and awaitable object equal to readv(2).
*
* example:
* ```C++
Expand Down Expand Up @@ -209,7 +209,7 @@ class Readv : public Op<int> {
};

/*
* Asynchorous and awaitable object equal to write(2).
* Asynchronous and awaitable object equal to write(2).
*
* example:
* ```C++
Expand Down Expand Up @@ -238,7 +238,7 @@ class Write : public Op<int> {
};

/*
* Asynchorous and awaitable object equal to writev(2).
* Asynchronous and awaitable object equal to writev(2).
*
* example:
* ```C++
Expand Down Expand Up @@ -267,7 +267,7 @@ class Writev : public Op<int> {
};

/*
* Asynchorous and awaitable object equal to openat(2).
* Asynchronous and awaitable object equal to openat(2).
*
* example:
* ```C++
Expand All @@ -294,7 +294,7 @@ class OpenAt : public Op<int> {
};

/*
* Asynchorous and awaitable object equal to accept(2).
* Asynchronous and awaitable object equal to accept(2).
*
* example:
* ```C++
Expand Down Expand Up @@ -324,7 +324,7 @@ class Accept : public Op<int> {
};

/*
* Asynchorous and awaitable object equal to recv(2).
* Asynchronous and awaitable object equal to recv(2).
*
* example:
* ```C++
Expand All @@ -351,7 +351,7 @@ class Recv : public Op<int> {
};

/*
* Asynchorous and awaitable object equal to send(2).
* Asynchronous and awaitable object equal to send(2).
*
* example:
* ```C++
Expand Down Expand Up @@ -408,15 +408,15 @@ class File {
~File();

/*
* Asynchorous and awaitable read at file equal to read(2).
* Asynchronous and awaitable read at file equal to read(2).
*
* See examples in [`Read`] and
* https://man7.org/linux/man-pages/man2/read.2.html
* */
Read read(std::shared_ptr<io_uring>& uring, void* buf, unsigned nbytes);

/*
* Asynchorous and awaitable readv at file equal to readv(2).
* Asynchronous and awaitable readv at file equal to readv(2).
*
* See examples in [`Readv`] and
* https://man7.org/linux/man-pages/man2/readv.2.html
Expand All @@ -425,7 +425,7 @@ class File {
unsigned nr_vecs);

/*
* Asynchorous and awaitable write at file equal to write(2).
* Asynchronous and awaitable write at file equal to write(2).
*
* See examples in [`Write`] and
* https://man7.org/linux/man-pages/man2/write.2.html
Expand All @@ -434,7 +434,7 @@ class File {
unsigned nbytes);

/*
* Asynchorous and awaitable writev at file equal to writev(2).
* Asynchronous and awaitable writev at file equal to writev(2).
*
* See examples in [`Writev`] and
* https://man7.org/linux/man-pages/man2/writev.2.html
Expand All @@ -447,7 +447,7 @@ class File {
};

/*
* Asynchorous open file with read-only mode.
* Asynchronous open file with read-only mode.
*
* `WARNING`: the type of return value is [`int`] instead of [`File`].
*
Expand Down Expand Up @@ -476,7 +476,7 @@ Map<__s32, OpenAt, int> async_open(std::shared_ptr<io_uring>& uring,
// const char*path);

/*
* Asynchorous create file with read-write mode.
* Asynchronous create file with read-write mode.
* */
Map<__s32, OpenAt, int> async_create(std::shared_ptr<io_uring>& uring,
const char* path);
Expand Down Expand Up @@ -515,15 +515,15 @@ class TcpStream {
~TcpStream();

/*
* Asynchorous and awaitable recv at stream equal to recv(2).
* Asynchronous and awaitable recv at stream equal to recv(2).
*
* See examples in [`Recv`] and
* https://man7.org/linux/man-pages/man2/recv.2.html
* */
Recv async_recv(std::shared_ptr<io_uring>& uring, void* buf, size_t len);

/*
* Asynchorous and awaitable send at stream equal to send(2).
* Asynchronous and awaitable send at stream equal to send(2).
*
* See examples in [`Send`] and
* https://man7.org/linux/man-pages/man2/send.2.html
Expand Down Expand Up @@ -581,7 +581,7 @@ class TcpListener {
void listen_socket(int backlog);

/*
* Asynchorous and awaitable accept a connection equal to accept(2).
* Asynchronous and awaitable accept a connection equal to accept(2).
*
* See examples in [`Accept`] and
* https://man7.org/linux/man-pages/man2/accept.2.html
Expand Down

0 comments on commit 12f19ad

Please sign in to comment.