Skip to content

Commit f709c2c

Browse files
Merge pull request #3684 from allanrenucci/fix-typos
Fix typos in symmetric-meta-programming.md
2 parents 1e8c8a6 + f2a6a94 commit f709c2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/docs/reference/symmetric-meta-programming.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ and it takes types `T` to expressions of type `Type[T]`. Splicing
6464
takes expressions of type `Expr[T]` to expressions of type `T` and it
6565
takes expressions of type `Type[T]` to types `T`.
6666

67-
The two types can be are defined in package `scala.quoted` as follows:
67+
The two types can be defined in package `scala.quoted` as follows:
6868

6969
package scala.quoted
7070

@@ -200,13 +200,13 @@ Here’s an application of `map` and how it rewrites to optimized code:
200200
==> (inline)
201201

202202
val $this: Seq[Int] = genSeq[Int]()
203-
val f: Int => Int = x => x * x
203+
val f: Int => Int = x => x + 1
204204
~ _root_.Macros.mapImpl[Int, Int](’[Int], ’($this), ’(f))
205205

206206
==> (splice)
207207

208208
val $this: Seq[Int] = genSeq[Int]()
209-
val f: Int => Int = x => x * x
209+
val f: Int => Int = x => x + 1
210210

211211
{
212212
var i = 0
@@ -223,7 +223,7 @@ Here’s an application of `map` and how it rewrites to optimized code:
223223
==> (expand and splice inside quotes)
224224

225225
val $this: Seq[Int] = genSeq[Int]()
226-
val f: Int => Int = x => x * x
226+
val f: Int => Int = x => x + 1
227227

228228
{
229229
var i = 0

0 commit comments

Comments
 (0)