| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Traits mistakenly set as 'Case Classes' subsection
|
| |
| |
| |
| |
| | |
Instead of being its own section, a minor formatting issue causes 'Traits' to be rendered and numbered as a subsection of the section 'Case Classes'.
This patch changes the numbering on both 'Traits' and 'Object Definitions' sections.
|
|/ |
|
|\
| |
| | |
Fix missing quotes in EBNF of type alias
|
| | |
|
|\ \
| | |
| | | |
spec: Add 'Default Arguments' heading, sentence, example
|
| |/
| |
| |
| | |
The sentence and the accompanying example were stolen from SID-1.
|
|/
|
|
| |
The definition now specifically mentions that C is an element of the
inheritance closure of C.
|
| |
|
|\
| |
| | |
fix typo
|
| | |
|
|/
|
|
|
|
|
|
|
| |
I checked the intent with Martin, who said:
> [...] qualified private members are inherited like other members,
> it’s just that their access is restricted.
I've locked this in with a test as well.
|
|
|
|
|
| |
These rules were removed in #2244 and scala.NotNull itself was
deprecated.
|
| |
|
| |
|
|
|
| |
Avoid spurious italics...
|
|\
| |
| | |
fix definition of TRY in the language specification
|
| | |
|
|\ \
| |/
|/| |
Update 03-types.md
|
| |
| |
| | |
Using U_i instead of T_i is confusing. See http://stackoverflow.com/questions/26803244/is-this-a-typo-in-the-scala-language-specification-on-parameterized-types
|
|\ \
| |/
|/| |
Fix many typos in docs and comments
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit corrects many typos found in scaladocs, comments and
documentation. It should reduce a bit number of PRs which fix one
typo.
There are no changes in the 'real' code except one corrected name of
a JUnit test method and some error messages in exceptions. In the case
of typos in other method or field names etc., I just skipped them.
Obviously this commit doesn't fix all existing typos. I just generated
in IntelliJ the list of potential typos and looked through it quickly.
|
|\ \
| |/
|/| |
SI-7965 Support calls to MethodHandle.{invoke,invokeExact}
|
| | |
|
|\ \
| | |
| | | |
spec: Add a link to the sources from the main page
|
| |/ |
|
| | |
|
| | |
|
|/
|
|
|
|
| |
The original PR was partially applied to markdown.
https://github.com/scala/scala-dist/pull/103
|
|
|
| |
Missing closing curly brace as reported by Andre at https://groups.google.com/forum/#!topic/scala-language/4Zb6dc6EEFM.
|
|
|
| |
Reverted the claimed result values of the example in the section on repeated parameters and changed the code of the example method instead.
|
|
|
| |
Changed "in" to "by the".
|
|
|
| |
Changed two wrong plurals to singulars, and inserted a comma in an enumeration of alternatives before the last "or".
|
|
|
|
| |
Elided superfluous "a".
Corrected "no" to "not".
|
|
|
|
| |
Inserted two missing instances of the word "the".
Corrected "invokeDynamic" to "applyDynamic".
|
|
|
| |
Corrected the claimed outcome of the example in the section on repeated parameters. The example method sum sums up the _squares_ of the arguments.
|
|
|
| |
Inserted missing word "bounds".
|
|
|
| |
Fixed typo.
|
|
|
| |
Fixed typo.
|
|
|
|
|
| |
Bad: `T'_n`
Good: `T_n'`
|
|
|
|
| |
...and a Scala favicon.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a table of contents to the spec, with a way to get the link of a
header on hover (like on GitHub) and a "return to top" small icon at the
end of each section.
Jekyll generates the H1-level table of contents, and then the current
one is expended using jQuery all the way down to H5 titles. Examples and
H6 headers are ignored.
GitHub's (MIT licensed) octicons are used for nice "link" and "up"
icons.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes the titularity of the "Overloading resolution" header
under 6.26.1 "Value conversions" to match "Type instantiation."
Hopefully this makes the link to the actual 6.26.3 overloading
resolution section work without further renaming. (Edit: changed
the minor heading to say "Static overload resolution", which is
sufficiently redundant.)
Possibly that is the oftenest-cited section of the entire document.
At least on Stack Overflow, if not in Proceedings of the ACM.
|
|
|
|
|
|
|
| |
For examples, the "name" of the example (like "Example Ordered") is only
used to derived its html id so that one can link to it (see
`layouts/default.yml`). Ideally all examples should have a name; here I
only added enough to satisfy existing links.
|
| |
|
|
|
|
|
|
|
|
|
| |
Two things worth mentioning:
- `\em` and `emph` are not supported by MathJax,
- and things like `\mathcal{C}_0` require escaping the `_`,
otherwise markdown sees it as the beginning of `_some string_`.
It doesn't happen without the closing bracket in front, e.g. in `b_0`.
|
|
|
|
|
|
|
|
|
|
|
| |
This adds syntax highlighting for all code scala blocks. Highlighting is
done after MathJax is done rendering so that latex can be used in code
blocks (and it currently *is* used).
Sadly Scala isn't common enough to be bundled in the highlight.min.js
available from CDNs, so we commit a local version of version 8.2 with
only scala bundled in it. The only other language used (ebnf) isn't
supported by highlight.js.
|
| |
|
|
|
|
|
|
|
|
| |
Loaded using an DNS alias for the CDN, as per the
[instructions](http://docs.mathjax.org/en/latest/configuration.html)
I also switched from `latest` to `2.3-latest`, so that we don't
automatically perform major upgrades.
|