summaryrefslogtreecommitdiff
path: root/spec/04-basic-declarations-and-definitions.md
Commit message (Collapse)AuthorAgeFilesLines
* SI-5621 Missing implicits are supplied by defaultsSom Snytt2017-03-101-0/+9
| | | | Make a note in the examples for default args.
* Merge remote-tracking branch 'origin/2.11.x' into ↵Jason Zaugg2016-12-201-3/+3
|\ | | | | | | | | | | | | | | | | | | merge/2.11.x-to-2.12.x-20161220 Conflicts: bincompat-backward.whitelist.conf build.xml src/compiler/scala/tools/nsc/typechecker/Typers.scala src/library/scala/collection/immutable/NumericRange.scala
| * Merge pull request #5605 from szeiger/wip/fix-07-linksAdriaan Moors2016-12-191-2/+2
| |\ | | | | | | Fix spec links to `07-implicits.html`
| | * Fix spec links to `07-implicits.html`Stefan Zeiger2016-12-181-2/+2
| | | | | | | | | | | | | | | The file referenced by the current links actually exists under http://www.scala-lang.org/files/archive/spec/2.11/ but with a different design than the rest. It seems to be left over from an older version.
| * | fix eBNF error by removing wrong closing braceptrcarta2016-12-021-1/+1
| |/
* | Add language to code blocks in spec (#5502)Daniel Barclay2016-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add "scala" language code to pure-Scala code blocks. * Add "java" language code to Java code block. * Add "scala" language code to almost-pure-Scala code blocks. Add "scala" language code to two code blocks whose content was Scala except for containing ellipses (\ldots). * Add "scala" language code to non-literal-Scala code blocks. Add "scala" language code to code blocks that contain Scala but also special elements, such as identifiers that are italicized or have prime marks (e.g., e′, e′′), ellipses (\ldots), etc.
* | Editorial: Italicized more defining occurrences of terms.Daniel Barclay2016-08-211-6/+6
|/
* Fix 23 typos (m-o)Janek Bogucki2015-06-281-1/+1
|
* Merge pull request #4550 from YawarRaza7349/patch-2Adriaan Moors2015-06-171-1/+1
|\ | | | | Fix missing quotes in EBNF of type alias
| * Fix missing quotes in EBNF of type aliasYawarRaza73492015-06-111-1/+1
| |
* | spec: Add 'Default Arguments' heading, sentence, exampleSimon Ochsenreither2015-06-121-8/+20
|/ | | | The sentence and the accompanying example were stolen from SID-1.
* Spec improvementsSimon Ochsenreither2015-04-251-2/+2
|
* Fix many typos in docs and commentsmpociecha2014-12-141-1/+1
| | | | | | | | | | | | | 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.
* Update 04-basic-declarations-and-definitions.mdRobert Hoedicke2014-10-101-3/+3
| | | Reverted the claimed result values of the example in the section on repeated parameters and changed the code of the example method instead.
* Update 04-basic-declarations-and-definitions.mdroberthoedicke2014-10-081-2/+2
| | | Corrected the claimed outcome of the example in the section on repeated parameters. The example method sum sums up the _squares_ of the arguments.
* spec: remove trailing whitespace everywhereAntoine Gourlay2014-09-171-64/+45
|
* spec: fix latex formatting all over the placeAntoine Gourlay2014-09-171-10/+10
| | | | | | | | | 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`.
* Number files like chapters. Consolidate toc & preface.Adriaan Moors2014-03-281-0/+945
Aside from the consolidation of title & preface in index.md, this commit was produced as follows: ``` cd spec/ g mv 03-lexical-syntax.md 01-lexical-syntax.md g mv 04-identifiers-names-and-scopes.md 02-identifiers-names-and-scopes.md g mv 05-types.md 03-types.md g mv 06-basic-declarations-and-definitions.md 04-basic-declarations-and-definitions.md g mv 07-classes-and-objects.md 05-classes-and-objects.md g mv 08-expressions.md 06-expressions.md g mv 09-implicit-parameters-and-views.md 07-implicit-parameters-and-views.md g mv 10-pattern-matching.md 08-pattern-matching.md g mv 11-top-level-definitions.md 09-top-level-definitions.md g mv 12-xml-expressions-and-patterns.md 10-xml-expressions-and-patterns.md g mv 13-user-defined-annotations.md 11-user-defined-annotations.md g mv 14-the-scala-standard-library.md 12-the-scala-standard-library.md g mv 15-syntax-summary.md 13-syntax-summary.md g mv 16-references.md 14-references.md perl -pi -e 's/03-lexical-syntax/01-lexical-syntax/g' *.md perl -pi -e 's/04-identifiers-names-and-scopes/02-identifiers-names-and-scopes/g' *.md perl -pi -e 's/05-types/03-types/g' *.md perl -pi -e 's/06-basic-declarations-and-definitions/04-basic-declarations-and-definitions/g' *.md perl -pi -e 's/07-classes-and-objects/05-classes-and-objects/g' *.md perl -pi -e 's/08-expressions/06-expressions/g' *.md perl -pi -e 's/09-implicit-parameters-and-views/07-implicit-parameters-and-views/g' *.md perl -pi -e 's/10-pattern-matching/08-pattern-matching/g' *.md perl -pi -e 's/11-top-level-definitions/09-top-level-definitions/g' *.md perl -pi -e 's/12-xml-expressions-and-patterns/10-xml-expressions-and-patterns/g' *.md perl -pi -e 's/13-user-defined-annotations/11-user-defined-annotations/g' *.md perl -pi -e 's/14-the-scala-standard-library/12-the-scala-standard-library/g' *.md perl -pi -e 's/15-syntax-summary/13-syntax-summary/g' *.md perl -pi -e 's/16-references/14-references/g' *.md ```