summaryrefslogtreecommitdiff
path: root/book/src/main/scalatex/book/handson/WebPage.scalatex
diff options
context:
space:
mode:
authorlihaoyi <haoyi.sg@gmail.com>2014-11-23 20:33:33 -0800
committerlihaoyi <haoyi.sg@gmail.com>2014-11-23 20:33:33 -0800
commit7924069976b15ee0c535221673d89200ce3d5570 (patch)
treeb9a3b1f83eb55be73796af1d4fd5f32bcf65092f /book/src/main/scalatex/book/handson/WebPage.scalatex
parent0f58d9da34162cdb85d8b3b6c6c9c38a991f02db (diff)
downloadhands-on-scala-js-parboiled.tar.gz
hands-on-scala-js-parboiled.tar.bz2
hands-on-scala-js-parboiled.zip
Packaged resourcesparboiled
Diffstat (limited to 'book/src/main/scalatex/book/handson/WebPage.scalatex')
-rw-r--r--book/src/main/scalatex/book/handson/WebPage.scalatex2
1 files changed, 1 insertions, 1 deletions
diff --git a/book/src/main/scalatex/book/handson/WebPage.scalatex b/book/src/main/scalatex/book/handson/WebPage.scalatex
index 58fceb1..1056460 100644
--- a/book/src/main/scalatex/book/handson/WebPage.scalatex
+++ b/book/src/main/scalatex/book/handson/WebPage.scalatex
@@ -159,7 +159,7 @@
@li
@hl.scala("=>") v.s. @hl.javascript{function} to define the callback.
@li
- Scalatags' @hl.scala{pre} v.s. @hl.javascript{document.createElement}
+ Scalatags' @hl.scala{pre} v.s. @hl.javascript{document.createElement("pre")}
@p
Overall, they're pretty close, which is a common theme in Scala.js: using Javascript APIs in Scala.js is often as seamless and easy as using them in Javascript itself, and it often looks almost identical.