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 Jose Luis Contreras committed Nov 13, 2018
1 parent 35f4ddb commit 573c51f
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 573c51f

Please sign in to comment.