Skip to content

Commit 793372e

Browse files
committed
Fix spelling in compiletime ops docs
1 parent 8dc71cf commit 793372e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/docs/reference/metaprogramming/compiletime-ops.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
layout: doc-page
3-
title: "Compiletime operations"
3+
title: "Compile-time operations"
44
---
55

66
## The `scala.compiletime` Package
77

8-
The [`scala.compiletime`](https://dotty.epfl.ch/api/scala/compiletime.html) package contains helper definitions that provide support for compile time operations over values. They are described in the following.
8+
The [`scala.compiletime`](https://dotty.epfl.ch/api/scala/compiletime.html) package contains helper definitions that provide support for compile-time operations over values. They are described in the following.
99

1010
### `constValue` and `constValueOpt`
1111

@@ -43,7 +43,7 @@ def erasedValue[T]: T
4343
```
4444

4545
The `erasedValue` function _pretends_ to return a value of its type argument `T`.
46-
Calling this function will always result in a compiletime error unless the call
46+
Calling this function will always result in a compile-time error unless the call
4747
is removed from the code while inlining.
4848

4949
Using `erasedValue`, we can then define `defaultValue` as follows:
@@ -270,5 +270,5 @@ transparent inline def summonInline[T]: T = summonFrom {
270270

271271
## Reference
272272

273-
For more information about compiletime operation, see [PR #4768](https://github.com/lampepfl/dotty/pull/4768),
273+
For more information about compile-time operations, see [PR #4768](https://github.com/lampepfl/dotty/pull/4768),
274274
which explains how `summonFrom`'s predecessor (implicit matches) can be used for typelevel programming and code specialization and [PR #7201](https://github.com/lampepfl/dotty/pull/7201) which explains the new `summonFrom` syntax.

docs/sidebar.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ sidebar:
7979
url: docs/reference/metaprogramming/toc.html
8080
- title: Inline
8181
url: docs/reference/metaprogramming/inline.html
82+
- title: Compile-time ops
83+
url: docs/reference/metaprogramming/compiletime-ops.html
8284
- title: Macros
8385
url: docs/reference/metaprogramming/macros.html
8486
- title: Runtime Staging

0 commit comments

Comments
 (0)