Skip to content

Commit 61a592d

Browse files
authored
Merge pull request #431 from jaystrictor/master
Add newlines to docs (for correct rendering)
2 parents 453d770 + 971842a commit 61a592d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

futures-cpupool/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,13 @@ impl CpuPool {
129129
/// thread pool.
130130
///
131131
/// This is a shortcut for:
132+
///
132133
/// ```rust
134+
/// # use futures_cpupool::{Builder, CpuPool};
135+
/// #
136+
/// # fn new(size: usize) -> CpuPool {
133137
/// Builder::new().pool_size(size).create()
138+
/// # }
134139
/// ```
135140
///
136141
/// # Panics
@@ -144,8 +149,13 @@ impl CpuPool {
144149
/// of CPUs on the host.
145150
///
146151
/// This is a shortcut for:
152+
///
147153
/// ```rust
154+
/// # use futures_cpupool::{Builder, CpuPool};
155+
/// #
156+
/// # fn new_num_cpus() -> CpuPool {
148157
/// Builder::new().create()
158+
/// # }
149159
/// ```
150160
pub fn new_num_cpus() -> CpuPool {
151161
Builder::new().create()

0 commit comments

Comments
 (0)