Skip to content

Commit 31c358b

Browse files
committed
fixing line numbers for C code
1 parent 4f270e8 commit 31c358b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

chapters/convolutions/convolutions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ In code, this looks something like:
6464
{% sample lang="hs" %}
6565
[import:1-5, lang:"haskell"](code/haskell/convolution.hs)
6666
{% sample lang="c"%}
67-
[import:46-58, lang:"c_cpp"](code/c/convolutions.c)
67+
[import:44-57, lang:"c_cpp"](code/c/convolutions.c)
6868
{% sample lang="cpp"%}
6969
[import:68-88, lang:"c_cpp"](code/c++/convolutions.cpp)
7070
{% endmethod %}
@@ -113,7 +113,7 @@ The FFT-based convolution in Haskell is complicated, so here is some simple juli
113113
[import:19-22, lang:"julia"](code/julia/conv.jl)
114114
Where the `.*` operator is an element-wise multiplication.
115115
{% sample lang="c"%}
116-
[import:60-69, lang:"c_cpp"](code/c/convolutions.c)
116+
[import:59-69, lang:"c_cpp"](code/c/convolutions.c)
117117
{% sample lang="cpp"%}
118118
[import:90-105, lang:"c_cpp"](code/c++/convolutions.cpp)
119119
{% endmethod %}

chapters/tree_traversal/tree_traversal.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Trees are naturally recursive data structures, and because of this, we cannot ac
3333
{% sample lang="cs" %}
3434
[import:11-15, lang:"csharp"](code/cs/TreeMdAdditional/TreeMdAdditional.cs)
3535
{% sample lang="c" %}
36-
[import:6-10, lang:"c_cpp"](code/c/tree_traversal.c)
36+
[import:5-10, lang:"c_cpp"](code/c/tree_traversal.c)
3737
{% sample lang="js" %}
3838
[import:3-8, lang:"julia"](code/julia/Tree.jl)
3939
{% sample lang="py2" %}
@@ -56,7 +56,7 @@ Because of this, the most straightforward way to traverse the tree might be recu
5656
{% sample lang="cs" %}
5757
[import:48-57, lang:"csharp"](code/cs/TreeMdAdditional/TreeMdAdditional.cs)
5858
{% sample lang="c" %}
59-
[import:81-92, lang:"c_cpp"](code/c/tree_traversal.c)
59+
[import:77-86, lang:"c_cpp"](code/c/tree_traversal.c)
6060
{% sample lang="js" %}
6161
[import:15-23, lang:"javascript"](code/javascript/Tree_example.js)
6262
{% sample lang="py2" %}
@@ -152,9 +152,9 @@ In code, it looks like this:
152152
{% sample lang="cs" %}
153153
[import:36-52, lang:"csharp"](code/cs/Tree/Tree.cs)
154154
{% sample lang="c" %}
155-
[import:18-20, lang:"c_cpp"](code/c/tree_traversal.c)
156-
[import:37-48, lang:"c_cpp"](code/c/tree_traversal.c)
157-
[import:94-113, lang:"c_cpp"](code/c/tree_traversal.c)
155+
[import:20-33, lang:"c_cpp"](code/c/tree_traversal.c)
156+
[import:35-47, lang:"c_cpp"](code/c/tree_traversal.c)
157+
[import:88-106, lang:"c_cpp"](code/c/tree_traversal.c)
158158
{% sample lang="js" %}
159159
[import:25-40, lang:"javascript"](code/javascript/Tree_example.js)
160160
{% sample lang="py2" %}
@@ -183,7 +183,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
183183
{% sample lang="cs" %}
184184
[import:54-70, lang:"csharp"](code/cs/Tree/Tree.cs)
185185
{% sample lang="c" %}
186-
[import:115-135, lang:"c_cpp"](code/c/tree_traversal.c)
186+
[import:108-126, lang:"c_cpp"](code/c/tree_traversal.c)
187187
{% sample lang="js" %}
188188
[import:42-57, lang:"javascript"](code/javascript/Tree_example.js)
189189
{% sample lang="py2" %}

0 commit comments

Comments
 (0)