From 010615e31303df613c84b942d67caaca75a4d0fe Mon Sep 17 00:00:00 2001 From: HairyFotr Date: Fri, 24 Feb 2017 02:20:28 +0100 Subject: [PATCH] Fix typos --- ba/tutorials/tour/_posts/2017-02-13-nested-functions.md | 2 +- overviews/collections/trait-iterable.md | 2 +- sips/completed/_posts/2016-06-25-trailing-commas.md | 2 +- sips/pending/_posts/2016-09-09-inline-meta.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ba/tutorials/tour/_posts/2017-02-13-nested-functions.md b/ba/tutorials/tour/_posts/2017-02-13-nested-functions.md index a21952a989..df077fd8fe 100644 --- a/ba/tutorials/tour/_posts/2017-02-13-nested-functions.md +++ b/ba/tutorials/tour/_posts/2017-02-13-nested-functions.md @@ -12,7 +12,7 @@ language: ba --- U Scali je moguće ugnježdavati definicije funkcija. -Sljedeći objekt sadrži funkciju `filter` za dobijanje vrijednosti iz liste cijelih brojeva koji su manji od vrijednosti praga (treshold): +Sljedeći objekt sadrži funkciju `filter` za dobijanje vrijednosti iz liste cijelih brojeva koji su manji od vrijednosti praga (threshold): object FilterTest extends App { def filter(xs: List[Int], threshold: Int) = { diff --git a/overviews/collections/trait-iterable.md b/overviews/collections/trait-iterable.md index 00c0aa498f..48b0e66d0f 100644 --- a/overviews/collections/trait-iterable.md +++ b/overviews/collections/trait-iterable.md @@ -9,7 +9,7 @@ num: 4 languages: [ja, zh-cn] --- -The next trait from the top in the collections hierarchy is `Iterable`. All methods in this trait are defined in terms of an an abstract method, `iterator`, which yields the collection's elements one by one. The `foreach` method from trait `Traversable` is implemented in `Iterable` in terms of `iterator`. Here is the actual implementation: +The next trait from the top in the collections hierarchy is `Iterable`. All methods in this trait are defined in terms of an abstract method, `iterator`, which yields the collection's elements one by one. The `foreach` method from trait `Traversable` is implemented in `Iterable` in terms of `iterator`. Here is the actual implementation: def foreach[U](f: Elem => U): Unit = { val it = iterator diff --git a/sips/completed/_posts/2016-06-25-trailing-commas.md b/sips/completed/_posts/2016-06-25-trailing-commas.md index c16d56bbe8..0ee5493fbb 100644 --- a/sips/completed/_posts/2016-06-25-trailing-commas.md +++ b/sips/completed/_posts/2016-06-25-trailing-commas.md @@ -199,7 +199,7 @@ class Bippy( ## Implementation -The implementation of trailing commas is is limited to changing Parsers.scala in the Scala compiler. An implementation of this proposal can be found at [scala/scala#5245][]. +The implementation of trailing commas is limited to changing Parsers.scala in the Scala compiler. An implementation of this proposal can be found at [scala/scala#5245][]. ## Drawbacks/Trade-offs diff --git a/sips/pending/_posts/2016-09-09-inline-meta.md b/sips/pending/_posts/2016-09-09-inline-meta.md index ac2d8223e5..296c90a5d8 100644 --- a/sips/pending/_posts/2016-09-09-inline-meta.md +++ b/sips/pending/_posts/2016-09-09-inline-meta.md @@ -187,7 +187,7 @@ A typical first line of a macro impl is `import c.universe._` that makes the ent In addition to the compiler context, for every term parameter of a macro def, its macro impl takes a term parameter that carries a representation of the corresponding argument of the macro application. -Macro impls can can also get ahold of representation of type arguments, but this functionality is unnecessary for this example. +Macro impls can also get ahold of representation of type arguments, but this functionality is unnecessary for this example. A macro impl returns an abstract syntax tree, and this AST replaces the original macro application in the compilation pipeline. This is how we're going to perform the LINQ translation of calls to `Query.map`.