summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-09-28 09:22:14 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-09-28 09:22:14 -0400
commit37f1f04142d9ab899655a7de7c80fac66b4405c7 (patch)
tree0f987889104224f7ae4004c21193d2f7f82b1951 /src
parent6b630ebb57306572e176a646e5bec7f3132ff18e (diff)
downloadscala-37f1f04142d9ab899655a7de7c80fac66b4405c7.tar.gz
scala-37f1f04142d9ab899655a7de7c80fac66b4405c7.tar.bz2
scala-37f1f04142d9ab899655a7de7c80fac66b4405c7.zip
add a bit about unicode to scaladoc.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/StringContext.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library/scala/StringContext.scala b/src/library/scala/StringContext.scala
index 17c1d0d2ba..d9f41f6002 100644
--- a/src/library/scala/StringContext.scala
+++ b/src/library/scala/StringContext.scala
@@ -97,6 +97,13 @@ case class StringContext(parts: String*) {
*
* For example, the raw processed string `raw"a\nb"` is equal to the scala string `"a\\nb"`.
*
+ * ''Note:'' Even when using the raw interpolator, Scala will preprocess unicode escapes.
+ * For example:
+ * {{{
+ * scala> raw"\u0123"
+ * res0: String = ģ
+ * }}}
+ *
* @param `args` The arguments to be inserted into the resulting string.
* @throws An `IllegalArgumentException`
* if the number of `parts` in the enclosing `StringContext` does not exceed