docs(lib): fix some typos (#2818)
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
- Don't be mean.
|
- Don't be mean.
|
||||||
- Insulting anyone is prohibited.
|
- Insulting anyone is prohibited.
|
||||||
- Harrassment of any kind is prohibited.
|
- Harassment of any kind is prohibited.
|
||||||
- If another person feels uncomfortable with your remarks, stop it.
|
- If another person feels uncomfortable with your remarks, stop it.
|
||||||
- If a moderator deems your comment or conduct as inappropriate, stop it.
|
- If a moderator deems your comment or conduct as inappropriate, stop it.
|
||||||
- Disagreeing is fine, but keep it to technical arguments. Never attack the person.
|
- Disagreeing is fine, but keep it to technical arguments. Never attack the person.
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ important than **Correct** or **Fast**:
|
|||||||
|
|
||||||
- Say an individual were to bring forward a contribution that makes hyper more
|
- Say an individual were to bring forward a contribution that makes hyper more
|
||||||
correct, or faster, perhaps fixing some serious bug. But in doing so, they
|
correct, or faster, perhaps fixing some serious bug. But in doing so, they
|
||||||
also insulted people, harrassed other contributors or users, or shamed
|
also insulted people, harassed other contributors or users, or shamed
|
||||||
everyone for the previous code. They felt their contribution was "invaluable".
|
everyone for the previous code. They felt their contribution was "invaluable".
|
||||||
We would not accept such a contribution, instead banning the user and
|
We would not accept such a contribution, instead banning the user and
|
||||||
rewriting the code amongst the kind collaborators of the project.
|
rewriting the code amongst the kind collaborators of the project.
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ where
|
|||||||
///
|
///
|
||||||
/// This setting is configured by the server peer by sending the
|
/// This setting is configured by the server peer by sending the
|
||||||
/// [`SETTINGS_ENABLE_CONNECT_PROTOCOL` parameter][2] in a `SETTINGS` frame.
|
/// [`SETTINGS_ENABLE_CONNECT_PROTOCOL` parameter][2] in a `SETTINGS` frame.
|
||||||
/// This method returns the currently acknowledged value recieved from the
|
/// This method returns the currently acknowledged value received from the
|
||||||
/// remote.
|
/// remote.
|
||||||
///
|
///
|
||||||
/// [1]: https://datatracker.ietf.org/doc/html/rfc8441#section-4
|
/// [1]: https://datatracker.ietf.org/doc/html/rfc8441#section-4
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ impl OriginalHeaderOrder {
|
|||||||
// is needed to compile. Once ffi is stablized `no_run` should be removed
|
// is needed to compile. Once ffi is stablized `no_run` should be removed
|
||||||
// here.
|
// here.
|
||||||
/// This returns an iterator that provides header names and indexes
|
/// This returns an iterator that provides header names and indexes
|
||||||
/// in the original order recieved.
|
/// in the original order received.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ pub struct hyper_executor {
|
|||||||
/// The executor of all task futures.
|
/// The executor of all task futures.
|
||||||
///
|
///
|
||||||
/// There should never be contention on the mutex, as it is only locked
|
/// There should never be contention on the mutex, as it is only locked
|
||||||
/// to drive the futures. However, we cannot gaurantee proper usage from
|
/// to drive the futures. However, we cannot guarantee proper usage from
|
||||||
/// `hyper_executor_poll()`, which in C could potentially be called inside
|
/// `hyper_executor_poll()`, which in C could potentially be called inside
|
||||||
/// one of the stored futures. The mutex isn't re-entrant, so doing so
|
/// one of the stored futures. The mutex isn't re-entrant, so doing so
|
||||||
/// would result in a deadlock, but that's better than data corruption.
|
/// would result in a deadlock, but that's better than data corruption.
|
||||||
|
|||||||
Reference in New Issue
Block a user