Skip to content

Commit

Permalink
Merge pull request scala#4574 from janekdb/2.11.x-typos-g-i
Browse files Browse the repository at this point in the history
Fix 25 typos (g-i)
  • Loading branch information
retronym committed Jun 23, 2015
2 parents 1fbce46 + ada9fa0 commit 1b09e12
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/compiler/scala/reflect/quasiquotes/Reifiers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ trait Reifiers { self: Quasiquotes =>
* in the domain of the fill function;
*
* 2. fold the groups into a sequence of lists added together with ++ using
* fill reification for holeMap and fallback reification for non-holeMap.
* fill reification for holeMap and fallback reification for non-holeMap.
*
* Example:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ abstract class DeadCodeElimination extends SubComponent {
} else {
i match {
case NEW(REFERENCE(sym)) =>
log(s"Eliminated instantation of $sym inside $m")
log(s"Eliminated instantiation of $sym inside $m")
case STORE_LOCAL(l) if clobbers contains ((bb, idx)) =>
// if an unused instruction was a clobber of a used store to a reference or array type
// then we'll replace it with the store of a null to make sure the reference is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ abstract class ICodeReader extends ClassfileParser {
}
case JVM.invokedynamic =>
// TODO, this is just a place holder. A real implementation must parse the class constant entry
debuglog("Found JVM invokedynamic instructionm, inserting place holder ICode INVOKE_DYNAMIC.")
debuglog("Found JVM invokedynamic instruction, inserting place holder ICode INVOKE_DYNAMIC.")
containsInvokeDynamic = true
val poolEntry = in.nextChar.toInt
in.skip(2)
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/typechecker/Implicits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ trait Implicits {
if (implicitInfoss.forall(_.isEmpty)) SearchFailure
else new ImplicitComputation(implicitInfoss, isLocalToCallsite) findBest()

/** Produce an implicict info map, i.e. a map from the class symbols C of all parts of this type to
/** Produce an implicit info map, i.e. a map from the class symbols C of all parts of this type to
* the implicit infos in the companion objects of these class symbols C.
* The parts of a type is the smallest set of types that contains
* - the type itself
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/typechecker/Infer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ trait Infer extends Checkable {
def infer_s = map3(tparams, tvars, targs)((tparam, tvar, targ) => s"$tparam=$tvar/$targ") mkString ","
printTyping(tree, s"infer expr instance from pt=$pt, $infer_s")

// SI-7899 infering by-name types is unsound. The correct behaviour is conditional because the hole is
// SI-7899 inferring by-name types is unsound. The correct behaviour is conditional because the hole is
// exploited in Scalaz (Free.scala), as seen in: run/t7899-regression.
def dropByNameIfStrict(tp: Type): Type = if (settings.inferByName) tp else dropByName(tp)
def targsStrict = if (targs eq null) null else targs mapConserve dropByNameIfStrict
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/util/DocStrings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ object DocStrings {
extractSectionTag(str, section) -> section
}

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

Expand Down
2 changes: 1 addition & 1 deletion src/library/scala/collection/generic/Sorted.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ trait Sorted[K, +This <: Sorted[K, This]] {
/** Creates a ranged projection of this collection. Any mutations in the
* ranged projection will update this collection and vice versa.
*
* Note: keys are not garuanteed to be consistent between this collection
* Note: keys are not guaranteed to be consistent between this collection
* and the projection. This is the case for buffers where indexing is
* relative to the projection.
*
Expand Down
2 changes: 1 addition & 1 deletion src/reflect/scala/reflect/api/FlagSets.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import scala.language.implicitConversions
* ''Of Note:'' This part of the Reflection API is being considered as a candidate for redesign. It is
* quite possible that in future releases of the reflection API, flag sets could be replaced with something else.
*
* For more details about `FlagSet`s and other aspects of Scala reflection, see the
* For more details about `FlagSet`s and other aspects of Scala reflection, see the
* [[http://docs.scala-lang.org/overviews/reflection/overview.html Reflection Guide]]
*
* @group ReflectionAPI
Expand Down
2 changes: 1 addition & 1 deletion src/reflect/scala/reflect/api/Printers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ import java.io.{ PrintWriter, StringWriter }
* TermName("y")#2541#GET))
* }}}
*
* For more details about `Printer`s and other aspects of Scala reflection, see the
* For more details about `Printer`s and other aspects of Scala reflection, see the
* [[http://docs.scala-lang.org/overviews/reflection/overview.html Reflection Guide]]
*
* @group ReflectionAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait StripMarginInterpolator {
* The margin of each line is defined by whitespace leading up to a '|' character.
* This margin is stripped '''before''' the arguments are interpolated into to string.
*
* String escape sequences are '''not''' processed; this interpolater is designed to
* String escape sequences are '''not''' processed; this interpolator is designed to
* be used with triple quoted Strings.
*
* {{{
Expand Down
2 changes: 1 addition & 1 deletion test/files/jvm/javaReflection/Test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ getSimpleName / getCanonicalName / isAnonymousClass / isLocalClass / isSynthetic
These should be avoided, they yield unexpected results:
- isAnonymousClass is always false. Scala-defined classes are never anonymous for Java
reflection. Java reflection insepects the class name to decide whether a class is
reflection. Java reflection inspects the class name to decide whether a class is
anonymous, based on the name spec referenced above.
Also, the implementation of "isAnonymousClass" calls "getSimpleName", which may throw.
Expand Down
2 changes: 1 addition & 1 deletion test/files/jvm/protectedacc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ package p {
package b {
import a._;

/** Test interraction with Scala inherited methods and currying. */
/** Test interaction with Scala inherited methods and currying. */
class B extends A {
class C {
def m = {
Expand Down
2 changes: 1 addition & 1 deletion test/files/neg/t8431.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TestExplicit {
{val c1 = convert2(s); c1.combined}
}

// These ones work before and after; infering G=Null doesn't need to contribute an undetermined type param.
// These ones work before and after; inferring G=Null doesn't need to contribute an undetermined type param.
class Test3 {
import C.{cbf, convert1, convert2}
val s: Invariant[Null] = ???
Expand Down
2 changes: 1 addition & 1 deletion test/files/pos/t8947/Macro_1.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ object X {
// symtab.EmptyTree.setAttachments(symtab.NoPosition)
// }
//
// To make this visible to the macro implementaiton, it will need to be compiled in an earlier stage,
// To make this visible to the macro implementation, it will need to be compiled in an earlier stage,
// e.g a separate SBT sub-project.

}
2 changes: 1 addition & 1 deletion test/files/run/blame_eye_triple_eee-double.check
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if (x != x) is good
if (NaN != x) is good
x matching was good
NaN matching was good
loop with NaN was goood
loop with NaN was good
2 changes: 1 addition & 1 deletion test/files/run/blame_eye_triple_eee-double.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ object Test extends App {
else z = NaN
i += 1
}
if (z.isNaN && i == 10) println("loop with NaN was goood")
if (z.isNaN && i == 10) println("loop with NaN was good")
else println("loop with NaN was broken")
}
2 changes: 1 addition & 1 deletion test/files/run/blame_eye_triple_eee-float.check
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if (x != x) is good
if (NaN != x) is good
x matching was good
NaN matching was good
loop with NaN was goood
loop with NaN was good
2 changes: 1 addition & 1 deletion test/files/run/blame_eye_triple_eee-float.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ object Test extends App {
else z = NaN
i += 1
}
if (z.isNaN && i == 10) println("loop with NaN was goood")
if (z.isNaN && i == 10) println("loop with NaN was good")
else println("loop with NaN was broken")
}
2 changes: 1 addition & 1 deletion test/files/run/names-defaults.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ object Test extends App {
// result type of default getters: parameter type, except if this one mentions any type
// parameter, in which case the result type is inferred. examples:

// result type of default getter is "String => String". if it were infered, the compiler
// result type of default getter is "String => String". if it were inferred, the compiler
// would put "Nothing => Nothing", which is useless
def transform(s: String, f: String => String = identity _) = f(s)
println(transform("my text"))
Expand Down
2 changes: 1 addition & 1 deletion test/files/run/t0631.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ object Test extends App {
case class Bar(x: Foo)
val b = new Bar(new Foo)

// this should not call Foo.equals, but simply compare object identiy of b
// this should not call Foo.equals, but simply compare object identity of b
println(b == b)
}
2 changes: 1 addition & 1 deletion test/files/run/t2526.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object Test {

/*
* Checks foreach of `actual` goes over all the elements in `expected`
* We duplicate the method above because there is no common inteface between Traversable and
* We duplicate the method above because there is no common interface between Traversable and
* Iterator and we want to avoid converting between collections to ensure that we test what
* we mean to test.
*/
Expand Down
2 changes: 1 addition & 1 deletion test/files/run/t7817-tree-gen.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import scala.tools.partest._

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

package testSep { class C { object O } }
Expand Down
2 changes: 1 addition & 1 deletion test/files/scalacheck/quasiquotes/RuntimeErrorProps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object RuntimeErrorProps extends QuasiquoteProperties("errors") {
q"for(..$enums) 0"
}

property("for inlalid enum") = testFails {
property("for invalid enum") = testFails {
val enums = q"foo" :: Nil
q"for(..$enums) 0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ class InlinerTest extends ClearAfterClass {
|class C extends T
""".stripMargin
val List(c, t, tClass) = compile(code)
// the static implementaiton method is inlined into the mixin, so there's no invocation in the mixin
// the static implementation method is inlined into the mixin, so there's no invocation in the mixin
assertNoInvoke(getSingleMethod(c, "f"))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class MethodLevelOpts extends ClearAfterClass {
}

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

0 comments on commit 1b09e12

Please sign in to comment.