Skip to content

Fix typos in symmetric-meta-programming.md #3684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/docs/reference/symmetric-meta-programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down