From f2a6a941224479f52dcb7d5194c01209fcb3cf41 Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Thu, 21 Dec 2017 14:02:56 +0100 Subject: [PATCH] Fix typos in symmetric-meta-programming.md --- docs/docs/reference/symmetric-meta-programming.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/reference/symmetric-meta-programming.md b/docs/docs/reference/symmetric-meta-programming.md index fdf33b2964f8..891aefa7244c 100644 --- a/docs/docs/reference/symmetric-meta-programming.md +++ b/docs/docs/reference/symmetric-meta-programming.md @@ -64,7 +64,7 @@ and it takes types `T` to expressions of type `Type[T]`. Splicing takes expressions of type `Expr[T]` to expressions of type `T` and it takes expressions of type `Type[T]` to types `T`. -The two types can be are defined in package `scala.quoted` as follows: +The two types can be defined in package `scala.quoted` as follows: package scala.quoted @@ -200,13 +200,13 @@ Here’s an application of `map` and how it rewrites to optimized code: ==> (inline) val $this: Seq[Int] = genSeq[Int]() - val f: Int => Int = x => x * x + val f: Int => Int = x => x + 1 ~ _root_.Macros.mapImpl[Int, Int](’[Int], ’($this), ’(f)) ==> (splice) val $this: Seq[Int] = genSeq[Int]() - val f: Int => Int = x => x * x + val f: Int => Int = x => x + 1 { var i = 0 @@ -223,7 +223,7 @@ Here’s an application of `map` and how it rewrites to optimized code: ==> (expand and splice inside quotes) val $this: Seq[Int] = genSeq[Int]() - val f: Int => Int = x => x * x + val f: Int => Int = x => x + 1 { var i = 0