Skip to content

Commit 8f18d67

Browse files
committed
Fix heading levels
1 parent f9035c7 commit 8f18d67

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

docs/_docs/internals/syntax-3.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ |
1616

1717
Informal descriptions are typeset as `“some comment”`.
1818

19-
### Lexical Syntax
19+
## Lexical Syntax
2020
The lexical syntax of Scala is given by the following grammar in EBNF
2121
form.
2222

docs/_docs/internals/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ |
3030

3131
Informal descriptions are typeset as `“some comment”`.
3232

33-
### Lexical Syntax
33+
## Lexical Syntax
3434

3535
The lexical syntax of Scala is given by the following grammar in EBNF
3636
form.

docs/_docs/reference/changed-features/imports.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ import scala.annotation as ann
3838
import java as j
3939
```
4040

41-
### Migration
41+
## Migration
4242

4343
To support cross-building, Scala 3.0 supports the old import syntax with `_` for wildcards and `=>` for renamings in addition to the new one. The old syntax
4444
will be dropped in a future versions. Automatic rewritings from old to new syntax
4545
are offered under settings `-source 3.1-migration -rewrite`.
4646

47-
### Syntax
47+
## Syntax
4848

4949
```
5050
Import ::= ‘import’ ImportExpr {‘,’ ImportExpr}

docs/_docs/reference/contextual/context-functions-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ See the section on Expressiveness from [Simplicitly: foundations and
7474
applications of implicit function
7575
types](https://dl.acm.org/citation.cfm?id=3158130).
7676

77-
### Type Checking
77+
## Type Checking
7878

7979
After desugaring no additional typing rules are required for context function types.

docs/_docs/reference/contextual/derivation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ authors would normally implement a `derived` method in this way, however this wa
186186
authors of the higher level derivation libraries that we expect typical type class authors will use (for a fully
187187
worked out example of such a library, see [Shapeless 3](https://github.com/milessabin/shapeless/tree/shapeless-3)).
188188

189-
### How to write a type class `derived` method using low level mechanisms
189+
## How to write a type class `derived` method using low level mechanisms
190190

191191
The low-level method we will use to implement a type class `derived` method in this example exploits three new
192192
type-level constructs in Scala 3: inline methods, inline matches, and implicit searches via `summonInline` or `summonFrom`. Given this definition of the

docs/_docs/reference/metaprogramming/inline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ If a `inline` modifier is given for parameters, corresponding arguments must be
224224
pure expressions of constant type.
225225
-->
226226
227-
#### The definition of constant expression
227+
### The definition of constant expression
228228
229229
Right-hand sides of inline values and of arguments for inline parameters must be
230230
constant expressions in the sense defined by the [SLS §6.24](https://www.scala-lang.org/files/archive/spec/2.13/06-expressions.html#constant-expressions),

docs/_docs/reference/new-types/dependent-function-types-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ def composeFn[A, B, C]:
120120
assert(composeFn(i2s)(s2i)(22) == 2)
121121
```
122122

123-
### Type Checking
123+
## Type Checking
124124

125125
After desugaring no additional typing rules are required for dependent function types.

docs/_docs/reference/new-types/type-lambdas-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TypeParam ::= {Annotation} (id [HkTypeParamClause] | ‘_’) TypeBounds
1313
TypeBounds ::= [‘>:’ Type] [‘<:’ Type]
1414
```
1515

16-
### Type Checking
16+
## Type Checking
1717

1818
A type lambda such as `[X] =>> F[X]` defines a function from types to types. The parameter(s) may carry bounds.
1919
If a parameter is bounded, as in `[X >: L <: U] =>> F[X]` it is checked that arguments to the parameters conform to the bounds `L` and `U`.

docs/_docs/reference/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ |
3131

3232
Informal descriptions are typeset as `“some comment”`.
3333

34-
### Lexical Syntax
34+
## Lexical Syntax
3535

3636
The lexical syntax of Scala is given by the following grammar in EBNF
3737
form.

0 commit comments

Comments
 (0)