Skip to content

Commit

Permalink
Fix variable name in tutorial code snippet (apache#13052)
Browse files Browse the repository at this point in the history
Fixes incorrect variable name in tutorial code as raised in issue apache#13051
  • Loading branch information
wongjoel authored and azai91 committed Dec 1, 2018
1 parent a2f91f4 commit 7faf3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/scala/char_lstm.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ To prepare the data:
```scala
scala> // Build a vocabulary of what char we have in the content
scala> def buildVocab(path: String): Map[String, Int] = {
val content = readContent(dataPath).split("\n")
val content = readContent(path).split("\n")
var idx = 1 // 0 is left for zero padding
var theVocab = Map[String, Int]()
for (line <- content) {
Expand Down

0 comments on commit 7faf3c5

Please sign in to comment.