docs: fix some typos (#3984)
This commit is contained in:
parent
15e81386bf
commit
3990fcad62
@ -235,7 +235,7 @@ Our downloader is to be invoked as::
|
||||
|
||||
$ ./uvwget [url1] [url2] ...
|
||||
|
||||
So we add each argument as an URL
|
||||
So we add each argument as a URL
|
||||
|
||||
.. rubric:: uvwget/main.c - Adding urls
|
||||
.. literalinclude:: ../../code/uvwget/main.c
|
||||
|
||||
@ -56,7 +56,7 @@ Data types
|
||||
/*
|
||||
* Indicates if IP_RECVERR/IPV6_RECVERR will be set when binding the handle.
|
||||
* This sets IP_RECVERR for IPv4 and IPV6_RECVERR for IPv6 UDP sockets on
|
||||
* Linux. This stops the Linux kernel from supressing some ICMP error messages
|
||||
* Linux. This stops the Linux kernel from suppressing some ICMP error messages
|
||||
* and enables full ICMP error reporting for faster failover.
|
||||
* This flag is no-op on platforms other than Linux.
|
||||
*/
|
||||
|
||||
@ -499,7 +499,7 @@ typedef struct {
|
||||
struct { uv_pipe_connection_fields } conn; \
|
||||
} pipe;
|
||||
|
||||
/* TODO: put the parser states in an union - TTY handles are always half-duplex
|
||||
/* TODO: put the parser states in a union - TTY handles are always half-duplex
|
||||
* so read-state can safely overlap write-state. */
|
||||
#define UV_TTY_PRIVATE_FIELDS \
|
||||
HANDLE handle; \
|
||||
|
||||
@ -2198,7 +2198,7 @@ void uv_fs_req_cleanup(uv_fs_t* req) {
|
||||
if (req == NULL)
|
||||
return;
|
||||
|
||||
/* Only necessary for asychronous requests, i.e., requests with a callback.
|
||||
/* Only necessary for asynchronous requests, i.e., requests with a callback.
|
||||
* Synchronous ones don't copy their arguments and have req->path and
|
||||
* req->new_path pointing to user-owned memory. UV_FS_MKDTEMP and
|
||||
* UV_FS_MKSTEMP are the exception to the rule, they always allocate memory.
|
||||
|
||||
@ -686,7 +686,7 @@ static int uv__spawn_resolve_and_spawn(const uv_process_options_t* options,
|
||||
if (options->file == NULL)
|
||||
return ENOENT;
|
||||
|
||||
/* The environment for the child process is that of the parent unless overriden
|
||||
/* The environment for the child process is that of the parent unless overridden
|
||||
* by options->env */
|
||||
char** env = environ;
|
||||
if (options->env != NULL)
|
||||
|
||||
@ -2279,7 +2279,7 @@ static void fs__fchmod(uv_fs_t* req) {
|
||||
SET_REQ_WIN32_ERROR(req, pRtlNtStatusToDosError(nt_status));
|
||||
goto fchmod_cleanup;
|
||||
}
|
||||
/* Remeber to clear the flag later on */
|
||||
/* Remember to clear the flag later on */
|
||||
clear_archive_flag = 1;
|
||||
} else {
|
||||
clear_archive_flag = 0;
|
||||
|
||||
@ -614,7 +614,7 @@ TEST_IMPL(fs_event_watch_file_exact_path) {
|
||||
create_file("watch_dir/file.js");
|
||||
create_file("watch_dir/file.jsx");
|
||||
#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_12)
|
||||
/* Empirically, FSEvents seems to (reliably) report the preceeding
|
||||
/* Empirically, FSEvents seems to (reliably) report the preceding
|
||||
* create_file events prior to macOS 10.11.6 in the subsequent fs_watch
|
||||
* creation, but that behavior hasn't been observed to occur on newer
|
||||
* versions. Give a long delay here to let the system settle before running
|
||||
@ -682,7 +682,7 @@ TEST_IMPL(fs_event_watch_file_current_dir) {
|
||||
remove("watch_file");
|
||||
create_file("watch_file");
|
||||
#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_12)
|
||||
/* Empirically, kevent seems to (sometimes) report the preceeding
|
||||
/* Empirically, kevent seems to (sometimes) report the preceding
|
||||
* create_file events prior to macOS 10.11.6 in the subsequent fs_event_start
|
||||
* So let the system settle before running the test. */
|
||||
uv_sleep(1100);
|
||||
|
||||
@ -1121,7 +1121,7 @@ TEST_IMPL(tty_set_style) {
|
||||
ASSERT(compare_screen(&tty_out, &actual, &expect));
|
||||
}
|
||||
|
||||
/* Set foregroud and background color */
|
||||
/* Set foreground and background color */
|
||||
ASSERT(ARRAY_SIZE(fg_attrs) == ARRAY_SIZE(bg_attrs));
|
||||
length = ARRAY_SIZE(bg_attrs);
|
||||
for (i = 0; i < length; i++) {
|
||||
@ -1362,7 +1362,7 @@ TEST_IMPL(tty_escape_sequence_processing) {
|
||||
|
||||
initialize_tty(&tty_out);
|
||||
|
||||
/* CSI + finaly byte does not output anything */
|
||||
/* CSI + finally byte does not output anything */
|
||||
cursor_pos.X = 1;
|
||||
cursor_pos.Y = 1;
|
||||
set_cursor_position(&tty_out, cursor_pos);
|
||||
@ -1375,7 +1375,7 @@ TEST_IMPL(tty_escape_sequence_processing) {
|
||||
capture_screen(&tty_out, &actual);
|
||||
ASSERT(compare_screen(&tty_out, &actual, &expect));
|
||||
|
||||
/* CSI(C1) + finaly byte does not output anything */
|
||||
/* CSI(C1) + finally byte does not output anything */
|
||||
cursor_pos.X = 1;
|
||||
cursor_pos.Y = 1;
|
||||
set_cursor_position(&tty_out, cursor_pos);
|
||||
@ -1388,7 +1388,7 @@ TEST_IMPL(tty_escape_sequence_processing) {
|
||||
capture_screen(&tty_out, &actual);
|
||||
ASSERT(compare_screen(&tty_out, &actual, &expect));
|
||||
|
||||
/* CSI + intermediate byte + finaly byte does not output anything */
|
||||
/* CSI + intermediate byte + finally byte does not output anything */
|
||||
cursor_pos.X = 1;
|
||||
cursor_pos.Y = 1;
|
||||
set_cursor_position(&tty_out, cursor_pos);
|
||||
@ -1401,7 +1401,7 @@ TEST_IMPL(tty_escape_sequence_processing) {
|
||||
capture_screen(&tty_out, &actual);
|
||||
ASSERT(compare_screen(&tty_out, &actual, &expect));
|
||||
|
||||
/* CSI + parameter byte + finaly byte does not output anything */
|
||||
/* CSI + parameter byte + finally byte does not output anything */
|
||||
cursor_pos.X = 1;
|
||||
cursor_pos.Y = 1;
|
||||
set_cursor_position(&tty_out, cursor_pos);
|
||||
@ -1605,7 +1605,7 @@ TEST_IMPL(tty_escape_sequence_processing) {
|
||||
capture_screen(&tty_out, &actual);
|
||||
ASSERT(compare_screen(&tty_out, &actual, &expect));
|
||||
|
||||
/* Finaly byte immedately after CSI [ are also output(#1874 1.) */
|
||||
/* Finally byte immedately after CSI [ are also output(#1874 1.) */
|
||||
cursor_pos.X = expect.si.width / 2;
|
||||
cursor_pos.Y = expect.si.height / 2;
|
||||
set_cursor_position(&tty_out, cursor_pos);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user