Skip to content

Commit 07766fe

Browse files
committed
Fix mdbook
Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent 6505978 commit 07766fe

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

mdbook/src/chapter_4/chapter_4_1.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ You can create a new scope in any other scope by invoking the `scoped` method:
1818
extern crate timely;
1919

2020
use timely::dataflow::Scope;
21+
use timely::progress::SubgraphBuilder;
2122

2223
fn main() {
2324
timely::example(|scope| {
2425

2526
// Create a new scope with the same (u64) timestamp.
26-
scope.scoped::<u64,_,_>("SubScope", |subscope| {
27+
scope.scoped::<u64,_,_,SubgraphBuilder<_,_>>("SubScope", |subscope| {
2728
// probably want something here
2829
})
2930

@@ -46,14 +47,15 @@ extern crate timely;
4647

4748
use timely::dataflow::Scope;
4849
use timely::dataflow::operators::*;
50+
use timely::progress::SubgraphBuilder;
4951

5052
fn main() {
5153
timely::example(|scope| {
5254

5355
let stream = (0 .. 10).to_stream(scope);
5456

5557
// Create a new scope with the same (u64) timestamp.
56-
let result = scope.scoped::<u64,_,_>("SubScope", |subscope| {
58+
let result = scope.scoped::<u64,_,_,SubgraphBuilder<_,_>>("SubScope", |subscope| {
5759
stream.enter(subscope)
5860
.inspect_batch(|t, xs| println!("{:?}, {:?}", t, xs))
5961
.leave()
@@ -108,14 +110,15 @@ extern crate timely;
108110

109111
use timely::dataflow::Scope;
110112
use timely::dataflow::operators::*;
113+
use timely::progress::SubgraphBuilder;
111114

112115
fn main() {
113116
timely::example(|scope| {
114117

115118
let stream = (0 .. 10).to_stream(scope);
116119

117120
// Create a new scope with a (u64, u32) timestamp.
118-
let result = scope.iterative::<u32,_,_>(|subscope| {
121+
let result = scope.iterative::<u32,_,_,SubgraphBuilder<_,_>>(|subscope| {
119122
stream.enter(subscope)
120123
.inspect_batch(|t, xs| println!("{:?}, {:?}", t, xs))
121124
.leave()

mdbook/src/chapter_4/chapter_4_2.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ extern crate timely;
8989

9090
use timely::dataflow::operators::*;
9191
use timely::dataflow::Scope;
92+
use timely::progress::SubgraphBuilder;
9293

9394
fn main() {
9495
timely::example(|scope| {
@@ -97,7 +98,7 @@ fn main() {
9798

9899
// Create a nested iterative scope.
99100
// Rust needs help understanding the iteration counter type.
100-
scope.iterative::<u64,_,_>(|subscope| {
101+
scope.iterative::<u64,_,_,SubgraphBuilder<_,_>>(|subscope| {
101102

102103
let (handle, stream) = subscope.loop_variable(1);
103104

0 commit comments

Comments
 (0)