Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 1b09e12

Browse files
committed
Merge pull request scala#4574 from janekdb/2.11.x-typos-g-i
Fix 25 typos (g-i)
2 parents 1fbce46 + ada9fa0 commit 1b09e12

File tree

25 files changed

+25
-25
lines changed

25 files changed

+25
-25
lines changed

src/compiler/scala/reflect/quasiquotes/Reifiers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ trait Reifiers { self: Quasiquotes =>
322322
* in the domain of the fill function;
323323
*
324324
* 2. fold the groups into a sequence of lists added together with ++ using
325-
* fill reification for holeMap and fallback reification for non-holeMap.
325+
* fill reification for holeMap and fallback reification for non-holeMap.
326326
*
327327
* Example:
328328
*

src/compiler/scala/tools/nsc/backend/opt/DeadCodeElimination.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ abstract class DeadCodeElimination extends SubComponent {
378378
} else {
379379
i match {
380380
case NEW(REFERENCE(sym)) =>
381-
log(s"Eliminated instantation of $sym inside $m")
381+
log(s"Eliminated instantiation of $sym inside $m")
382382
case STORE_LOCAL(l) if clobbers contains ((bb, idx)) =>
383383
// if an unused instruction was a clobber of a used store to a reference or array type
384384
// then we'll replace it with the store of a null to make sure the reference is

src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ abstract class ICodeReader extends ClassfileParser {
599599
}
600600
case JVM.invokedynamic =>
601601
// TODO, this is just a place holder. A real implementation must parse the class constant entry
602-
debuglog("Found JVM invokedynamic instructionm, inserting place holder ICode INVOKE_DYNAMIC.")
602+
debuglog("Found JVM invokedynamic instruction, inserting place holder ICode INVOKE_DYNAMIC.")
603603
containsInvokeDynamic = true
604604
val poolEntry = in.nextChar.toInt
605605
in.skip(2)

src/compiler/scala/tools/nsc/typechecker/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ trait Implicits {
985985
if (implicitInfoss.forall(_.isEmpty)) SearchFailure
986986
else new ImplicitComputation(implicitInfoss, isLocalToCallsite) findBest()
987987

988-
/** Produce an implicict info map, i.e. a map from the class symbols C of all parts of this type to
988+
/** Produce an implicit info map, i.e. a map from the class symbols C of all parts of this type to
989989
* the implicit infos in the companion objects of these class symbols C.
990990
* The parts of a type is the smallest set of types that contains
991991
* - the type itself

src/compiler/scala/tools/nsc/typechecker/Infer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ trait Infer extends Checkable {
934934
def infer_s = map3(tparams, tvars, targs)((tparam, tvar, targ) => s"$tparam=$tvar/$targ") mkString ","
935935
printTyping(tree, s"infer expr instance from pt=$pt, $infer_s")
936936

937-
// SI-7899 infering by-name types is unsound. The correct behaviour is conditional because the hole is
937+
// SI-7899 inferring by-name types is unsound. The correct behaviour is conditional because the hole is
938938
// exploited in Scalaz (Free.scala), as seen in: run/t7899-regression.
939939
def dropByNameIfStrict(tp: Type): Type = if (settings.inferByName) tp else dropByName(tp)
940940
def targsStrict = if (targs eq null) null else targs mapConserve dropByNameIfStrict

src/compiler/scala/tools/nsc/util/DocStrings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ object DocStrings {
184184
extractSectionTag(str, section) -> section
185185
}
186186

187-
/** Extract the section tag, treating the section tag as an indentifier */
187+
/** Extract the section tag, treating the section tag as an identifier */
188188
def extractSectionTag(str: String, section: (Int, Int)): String =
189189
str.substring(section._1, skipTag(str, section._1))
190190

src/library/scala/collection/generic/Sorted.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ trait Sorted[K, +This <: Sorted[K, This]] {
3636
/** Creates a ranged projection of this collection. Any mutations in the
3737
* ranged projection will update this collection and vice versa.
3838
*
39-
* Note: keys are not garuanteed to be consistent between this collection
39+
* Note: keys are not guaranteed to be consistent between this collection
4040
* and the projection. This is the case for buffers where indexing is
4141
* relative to the projection.
4242
*

src/reflect/scala/reflect/api/FlagSets.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import scala.language.implicitConversions
4848
* ''Of Note:'' This part of the Reflection API is being considered as a candidate for redesign. It is
4949
* quite possible that in future releases of the reflection API, flag sets could be replaced with something else.
5050
*
51-
* For more details about `FlagSet`s and other aspects of Scala reflection, see the
51+
* For more details about `FlagSet`s and other aspects of Scala reflection, see the
5252
* [[http://docs.scala-lang.org/overviews/reflection/overview.html Reflection Guide]]
5353
*
5454
* @group ReflectionAPI

src/reflect/scala/reflect/api/Printers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ import java.io.{ PrintWriter, StringWriter }
130130
* TermName("y")#2541#GET))
131131
* }}}
132132
*
133-
* For more details about `Printer`s and other aspects of Scala reflection, see the
133+
* For more details about `Printer`s and other aspects of Scala reflection, see the
134134
* [[http://docs.scala-lang.org/overviews/reflection/overview.html Reflection Guide]]
135135
*
136136
* @group ReflectionAPI

src/reflect/scala/reflect/internal/util/StripMarginInterpolator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trait StripMarginInterpolator {
1313
* The margin of each line is defined by whitespace leading up to a '|' character.
1414
* This margin is stripped '''before''' the arguments are interpolated into to string.
1515
*
16-
* String escape sequences are '''not''' processed; this interpolater is designed to
16+
* String escape sequences are '''not''' processed; this interpolator is designed to
1717
* be used with triple quoted Strings.
1818
*
1919
* {{{

test/files/jvm/javaReflection/Test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ getSimpleName / getCanonicalName / isAnonymousClass / isLocalClass / isSynthetic
3131
These should be avoided, they yield unexpected results:
3232
3333
- isAnonymousClass is always false. Scala-defined classes are never anonymous for Java
34-
reflection. Java reflection insepects the class name to decide whether a class is
34+
reflection. Java reflection inspects the class name to decide whether a class is
3535
anonymous, based on the name spec referenced above.
3636
Also, the implementation of "isAnonymousClass" calls "getSimpleName", which may throw.
3737

test/files/jvm/protectedacc.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ package p {
7474
package b {
7575
import a._;
7676

77-
/** Test interraction with Scala inherited methods and currying. */
77+
/** Test interaction with Scala inherited methods and currying. */
7878
class B extends A {
7979
class C {
8080
def m = {

test/files/neg/t8431.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TestExplicit {
4848
{val c1 = convert2(s); c1.combined}
4949
}
5050

51-
// These ones work before and after; infering G=Null doesn't need to contribute an undetermined type param.
51+
// These ones work before and after; inferring G=Null doesn't need to contribute an undetermined type param.
5252
class Test3 {
5353
import C.{cbf, convert1, convert2}
5454
val s: Invariant[Null] = ???

test/files/pos/t8947/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object X {
3535
// symtab.EmptyTree.setAttachments(symtab.NoPosition)
3636
// }
3737
//
38-
// To make this visible to the macro implementaiton, it will need to be compiled in an earlier stage,
38+
// To make this visible to the macro implementation, it will need to be compiled in an earlier stage,
3939
// e.g a separate SBT sub-project.
4040

4141
}

test/files/run/blame_eye_triple_eee-double.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if (x != x) is good
66
if (NaN != x) is good
77
x matching was good
88
NaN matching was good
9-
loop with NaN was goood
9+
loop with NaN was good

test/files/run/blame_eye_triple_eee-double.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ object Test extends App {
5656
else z = NaN
5757
i += 1
5858
}
59-
if (z.isNaN && i == 10) println("loop with NaN was goood")
59+
if (z.isNaN && i == 10) println("loop with NaN was good")
6060
else println("loop with NaN was broken")
6161
}

test/files/run/blame_eye_triple_eee-float.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if (x != x) is good
66
if (NaN != x) is good
77
x matching was good
88
NaN matching was good
9-
loop with NaN was goood
9+
loop with NaN was good

test/files/run/blame_eye_triple_eee-float.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ object Test extends App {
5656
else z = NaN
5757
i += 1
5858
}
59-
if (z.isNaN && i == 10) println("loop with NaN was goood")
59+
if (z.isNaN && i == 10) println("loop with NaN was good")
6060
else println("loop with NaN was broken")
6161
}

test/files/run/names-defaults.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ object Test extends App {
239239
// result type of default getters: parameter type, except if this one mentions any type
240240
// parameter, in which case the result type is inferred. examples:
241241

242-
// result type of default getter is "String => String". if it were infered, the compiler
242+
// result type of default getter is "String => String". if it were inferred, the compiler
243243
// would put "Nothing => Nothing", which is useless
244244
def transform(s: String, f: String => String = identity _) = f(s)
245245
println(transform("my text"))

test/files/run/t0631.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ object Test extends App {
1111
case class Bar(x: Foo)
1212
val b = new Bar(new Foo)
1313

14-
// this should not call Foo.equals, but simply compare object identiy of b
14+
// this should not call Foo.equals, but simply compare object identity of b
1515
println(b == b)
1616
}

test/files/run/t2526.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ object Test {
3838

3939
/*
4040
* Checks foreach of `actual` goes over all the elements in `expected`
41-
* We duplicate the method above because there is no common inteface between Traversable and
41+
* We duplicate the method above because there is no common interface between Traversable and
4242
* Iterator and we want to avoid converting between collections to ensure that we test what
4343
* we mean to test.
4444
*/

test/files/run/t7817-tree-gen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import scala.tools.partest._
22

3-
// Testing that `mkAttributedRef` doesn't incude the package object test.`package`,
3+
// Testing that `mkAttributedRef` doesn't include the package object test.`package`,
44
// under joint and separate compilation.
55

66
package testSep { class C { object O } }

test/files/scalacheck/quasiquotes/RuntimeErrorProps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ object RuntimeErrorProps extends QuasiquoteProperties("errors") {
6868
q"for(..$enums) 0"
6969
}
7070

71-
property("for inlalid enum") = testFails {
71+
property("for invalid enum") = testFails {
7272
val enums = q"foo" :: Nil
7373
q"for(..$enums) 0"
7474
}

test/junit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ class InlinerTest extends ClearAfterClass {
503503
|class C extends T
504504
""".stripMargin
505505
val List(c, t, tClass) = compile(code)
506-
// the static implementaiton method is inlined into the mixin, so there's no invocation in the mixin
506+
// the static implementation method is inlined into the mixin, so there's no invocation in the mixin
507507
assertNoInvoke(getSingleMethod(c, "f"))
508508
}
509509

test/junit/scala/tools/nsc/backend/jvm/opt/MethodLevelOpts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MethodLevelOpts extends ClearAfterClass {
5656
}
5757

5858
@Test
59-
def inlineReturnInCachtNotTry(): Unit = {
59+
def inlineReturnInCatchNotTry(): Unit = {
6060
val code = "def f: Int = return { try 1 catch { case _: Throwable => 2 } }"
6161
// cannot inline the IRETURN into the try block (because RETURN may throw IllegalMonitorState)
6262
val m = singleMethod(methodOptCompiler)(code)

0 commit comments

Comments
 (0)