Skip to content

Commit 4c5cdf1

Browse files
authored
Fix some minor typos in chapter 3.4 (freechipsproject#157)
1 parent 5dfafa1 commit 4c5cdf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

3.4_functional_programming.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"source": [
5959
"---\n",
6060
"# Functional Programming in Scala\n",
61-
"Scala functions were introduced in Module 1, and you saw then used a lot in the previous module. Here's a refresher on functions. Functions take any number of inputs and produce one output. Inputs are often called arguments to a function. To produce no output, return the `Unit` type. \n",
61+
"Scala functions were introduced in Module 1, and you saw them being used a lot in the previous module. Here's a refresher on functions. Functions take any number of inputs and produce one output. Inputs are often called arguments to a function. To produce no output, return the `Unit` type. \n",
6262
"\n",
6363
"<span style=\"color:blue\">**Example: Custom Functions**</span><br>\n",
6464
"Below are some examples of functions in Scala."
@@ -436,7 +436,7 @@
436436
" val expectValue = expected(i-length+1)\n",
437437
" //println(s\"expected value is $expectValue\")\n",
438438
" c.io.out.expect(expected(i-length+1).U)\n",
439-
" //println(s\"cycle $i, got ${peek(c.io.out)}, expect ${expected(i-length+1)}\")\n",
439+
" //println(s\"cycle $i, got ${c.io.out.peek()}, expect ${expected(i-length+1)}\")\n",
440440
" }\n",
441441
" c.clock.step(1)\n",
442442
" }\n",
@@ -620,4 +620,4 @@
620620
},
621621
"nbformat": 4,
622622
"nbformat_minor": 2
623-
}
623+
}

0 commit comments

Comments
 (0)