diff options
author | Manohar Jonnalagedda <manojo10386@gmail.com> | 2012-03-24 18:03:53 +0100 |
---|---|---|
committer | Manohar Jonnalagedda <manojo10386@gmail.com> | 2012-03-24 18:03:53 +0100 |
commit | 1c0bef88383a13f6bf6e52f9f9fc82c814dbdacb (patch) | |
tree | b4d6149966f147fc671c143c46f5362c4e685386 | |
parent | c0e9e75becead51d4317c5100f0b33eff62b6daa (diff) | |
download | scala-1c0bef88383a13f6bf6e52f9f9fc82c814dbdacb.tar.gz scala-1c0bef88383a13f6bf6e52f9f9fc82c814dbdacb.tar.bz2 scala-1c0bef88383a13f6bf6e52f9f9fc82c814dbdacb.zip |
Close issue #SI-4488
The issue is closed as won't fix, but there are a few test cases
with respect to the model relevant to the issue. Also, correct
some typos.
-rw-r--r-- | src/library/scala/collection/GenTraversableOnce.scala | 10 | ||||
-rw-r--r-- | src/library/scala/testing/Show.scala | 2 | ||||
-rw-r--r-- | test/scaladoc/scala/model/CommentFactoryTest.scala | 7 |
3 files changed, 13 insertions, 6 deletions
diff --git a/src/library/scala/collection/GenTraversableOnce.scala b/src/library/scala/collection/GenTraversableOnce.scala index 019d3d0785..a7ec7618b7 100644 --- a/src/library/scala/collection/GenTraversableOnce.scala +++ b/src/library/scala/collection/GenTraversableOnce.scala @@ -156,7 +156,7 @@ trait GenTraversableOnce[+A] extends Any { * @return the result of inserting `op` between consecutive elements of this $coll, * going left to right with the start value `z` on the left: * {{{ - * op(...op(op(z, x1), x2), ..., xn) + * op(...op(op(z, x_1), x_2), ..., x_n) * }}} * where `x,,1,,, ..., x,,n,,` are the elements of this $coll. */ @@ -191,7 +191,7 @@ trait GenTraversableOnce[+A] extends Any { * @return the result of inserting `op` between consecutive elements of this $coll, * going right to left with the start value `z` on the right: * {{{ - * op(x1, op(x2, ... op(xn, z)...)) + * op(x_1, op(x_2, ... op(x_n, z)...)) * }}} * where `x,,1,,, ..., x,,n,,` are the elements of this $coll. */ @@ -209,7 +209,7 @@ trait GenTraversableOnce[+A] extends Any { * @return the result of inserting `op` between consecutive elements of this $coll, * going left to right with the start value `z` on the left: * {{{ - * op(...op(z, x1), x2, ..., xn) + * op(...op(z, x_1), x_2, ..., x_n) * }}} * where `x,,1,,, ..., x,,n,,` are the elements of this $coll. */ @@ -226,7 +226,7 @@ trait GenTraversableOnce[+A] extends Any { * @return the result of inserting `op` between consecutive elements of this $coll, * going right to left with the start value `z` on the right: * {{{ - * op(x1, op(x2, ... op(xn, z)...)) + * op(x_1, op(x_2, ... op(x_n, z)...)) * }}} * where `x,,1,,, ..., x,,n,,` are the elements of this $coll. */ @@ -271,7 +271,7 @@ trait GenTraversableOnce[+A] extends Any { * @return the result of inserting `op` between consecutive elements of this $coll, * going right to left: * {{{ - * op(x,,1,,, op(x,,2,,, ..., op(x,,n-1,,, x,,n,,)...)) + * op(x_1, op(x_2, ..., op(x_{n-1}, x_n)...)) * }}} * where `x,,1,,, ..., x,,n,,` are the elements of this $coll. * @throws `UnsupportedOperationException` if this $coll is empty. diff --git a/src/library/scala/testing/Show.scala b/src/library/scala/testing/Show.scala index b0d094e466..7570bf705c 100644 --- a/src/library/scala/testing/Show.scala +++ b/src/library/scala/testing/Show.scala @@ -11,7 +11,7 @@ package scala.testing /** Classes inheriting trait `Show` can test their member methods using the - * notattion `meth(arg,,1,,, ..., arg,,n,,)`, where `meth` is the name of + * notation `meth(arg,,1,,, ..., arg,,n,,)`, where `meth` is the name of * the method and `arg,,1,,,...,arg,,n,,` are the arguments. * * The only difference to a normal method call is the leading quote diff --git a/test/scaladoc/scala/model/CommentFactoryTest.scala b/test/scaladoc/scala/model/CommentFactoryTest.scala index 69c314a64c..40ee475356 100644 --- a/test/scaladoc/scala/model/CommentFactoryTest.scala +++ b/test/scaladoc/scala/model/CommentFactoryTest.scala @@ -83,6 +83,13 @@ object Test extends Properties("CommentFactory") { Chain(List(Text("hello "), Superscript(Text("world")))) ) + property("Trac #4361 - ,,...,,") = parse( + """ +/** + * hello ,,world,, */""", + Chain(List(Text("hello "), Subscript(Text("world")))) + ) + property("Trac #4361 - single ^ symbol") = parse( """ /** |