Skip to content

Commit 702349c

Browse files
authored
Fix formatting
1 parent 1ca7680 commit 702349c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/src/perf_tips.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ with a simple benchmark
1414
using StreamSampling, BenchmarkTools
1515
1616
function fit_iter!(rs, iter)
17-
for i in iter
18-
rs = fit!(rs, i) # the reassignment is necessary when `rs` is immutable
19-
end
20-
return rs
17+
for i in iter
18+
rs = fit!(rs, i) # the reassignment is necessary when `rs` is immutable
19+
end
20+
return rs
2121
end
2222
2323
iter = 1:10^7;
@@ -62,9 +62,9 @@ and after that you can just update them in parallel like so
6262

6363
```@example 1
6464
Threads.@threads for i in 1:length(iters)
65-
for e in iters[i]
66-
fit!(rs[i], e)
67-
end
65+
for e in iters[i]
66+
fit!(rs[i], e)
67+
end
6868
end
6969
```
7070

0 commit comments

Comments
 (0)