Skip to content

Commit 1dcf21f

Browse files
doc typo fixes
1 parent 2a41d0a commit 1dcf21f

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

doc/env.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include::../example/env.cpp[tag=current_env]
2525
The subprocess environment assignment follows the same constraints:
2626

2727
.example/env.cpp:34-42
28-
[source,cpp,ident=0]
28+
[source,cpp,indent=0]
2929
----
3030
include::../example/env.cpp[tag=subprocess_env]
3131
----
@@ -36,15 +36,15 @@ The current environment can be obtained by calling `environment::current` which
3636
a forward range of `environment::key_value_pair_view`.
3737

3838
.example/env.cpp:48-54
39-
[source,cpp,ident=0]
39+
[source,cpp,indent=0]
4040
----
4141
include::../example/env.cpp[tag=vector_env]
4242
----
4343

4444
Alternatively you can use a map container for the environment.
4545

4646
.example/env.cpp:61-68
47-
[source,cpp,ident=0]
47+
[source,cpp,indent=0]
4848
----
4949
include::../example/env.cpp[tag=map_env]
5050
----

doc/launcher.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct custom_initializer
118118
};
119119
----
120120

121-
NTOE: All the additional launchers for windows inherit `default_launcher`.
121+
NOTE: All the additional launchers for windows inherit `default_launcher`.
122122

123123
The call sequence is as follows:
124124

doc/reference/bind_launcher.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
== `bind_launcher.hpp`
22

3-
The `bind_launcher` utlitities allow on the fly construction of a launcher with bound initializers.
3+
The `bind_launcher` utilities allow on the fly construction of a launcher with bound initializers.
44

55
[source,cpp]
66
----

doc/reference/default_launcher.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `default_launcher` is the standard way of creating a process.
88
asio::io_context ctx;
99
process proc(ctx.get_executor(), "test", {});
1010
// equivalent to
11-
process prod = default_launcher()(ctx.get_executor(), "test", {});
11+
process proc = default_launcher()(ctx.get_executor(), "test", {});
1212
----
1313

1414
It has four overloads:

doc/reference/popen.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
== `popen.hpp`
22
[#popen]
33

4-
`popen` is a class that launches a process and connect stdin & stderr to pipes.
4+
`popen` is a class that launches a process and connect stdin & stdout to pipes.
55

66
[source,cpp]
77
----

doc/reference/posix/bind_fd.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct bind_fd
4141
process p{"test", {}, posix::bind_fd(42, 24)};
4242
4343
*/
44-
bind_fd(int target, int fd):
44+
bind_fd(int target, int fd);
4545
4646
// Inherit a null device as a set descriptor.
4747
/* This will a null device as 42 to the child process:

doc/reference/process.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct basic_process
7878
template<typename ExecutionContext, typename Args, typename ... Inits>
7979
explicit basic_process(
8080
ExecutionContext & context,
81-
const filesystem::path&>::type exe,
81+
const filesystem::path& exe,
8282
Args&& args, Inits&&... inits);
8383
8484
// Attach to an existing process
@@ -142,7 +142,7 @@ struct basic_process
142142
native_handle_type native_handle() {return process_handle_.native_handle(); }
143143
144144
// Return the evaluated exit_code.
145-
int exit_code() cons;
145+
int exit_code() const;
146146
147147
// Get the id of the process;
148148
pid_type id() const;

0 commit comments

Comments
 (0)