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

Commit 8beed12

Browse files
committed
Merge pull request scala#4605 from janekdb/2.11.x-typos-s
Fix 25 typos (s) - LGTM - thanks, smiles
2 parents 8d119e6 + d2199c5 commit 8beed12

File tree

18 files changed

+24
-24
lines changed

18 files changed

+24
-24
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ trait Reifiers { self: Quasiquotes =>
317317
* Reification of non-trivial list is done in two steps:
318318
*
319319
* 1. split the list into groups where every placeholder is always
320-
* put in a group of its own and all subsquent non-holeMap are
320+
* put in a group of its own and all subsequent non-holeMap are
321321
* grouped together; element is considered to be a placeholder if it's
322322
* in the domain of the fill function;
323323
*

src/compiler/scala/tools/nsc/ast/TreeGen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ abstract class TreeGen extends scala.reflect.internal.TreeGen with TreeDSL {
233233
}
234234

235235
/** Return the synchronized part of the double-checked locking idiom around the syncBody tree. It guards with `cond` and
236-
* synchronizez on `clazz.this`. Additional statements can be included after initialization,
236+
* synchronizes on `clazz.this`. Additional statements can be included after initialization,
237237
* (outside the synchronized block).
238238
*
239239
* The idiom works only if the condition is using a volatile field.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ trait Implicits {
846846
errors.collectFirst { case err: DivergentImplicitTypeError => err } foreach saveDivergent
847847

848848
if (search.isDivergent && divergentError.isEmpty) {
849-
// Divergence triggered by `i` at this level of the implicit serach. We haven't
849+
// Divergence triggered by `i` at this level of the implicit search. We haven't
850850
// seen divergence so far, we won't issue this error just yet, and instead temporarily
851851
// treat `i` as a failed candidate.
852852
saveDivergent(DivergentImplicitTypeError(tree, pt, i.sym))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ trait MethodSynthesis {
436436
if (tree.symbol.owner.isTrait || hasUnitType(basisSym)) rhs1
437437
else gen.mkAssignAndReturn(basisSym, rhs1)
438438
)
439-
derivedSym setPos tree.pos // cannot set it at createAndEnterSymbol because basisSym can possible stil have NoPosition
439+
derivedSym setPos tree.pos // cannot set it at createAndEnterSymbol because basisSym can possibly still have NoPosition
440440
val ddefRes = DefDef(derivedSym, new ChangeOwnerAndModuleClassTraverser(basisSym, derivedSym)(body))
441441
// ValDef will have its position focused whereas DefDef will have original correct rangepos
442442
// ideally positions would be correct at the creation time but lazy vals are really a special case

src/reflect/scala/reflect/internal/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ trait Definitions extends api.StandardDefinitions {
103103
def isNumericValueClass(sym: Symbol) = ScalaNumericValueClasses contains sym
104104

105105
def isGetClass(sym: Symbol) = (
106-
sym.name == nme.getClass_ // this condition is for performance only, this is called from `Typer#stabliize`.
106+
sym.name == nme.getClass_ // this condition is for performance only, this is called from `Typer#stabilize`.
107107
&& getClassMethods(sym)
108108
)
109109

src/reflect/scala/reflect/internal/StdNames.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ trait StdNames {
870870
val toFloat: NameType = "toFloat"
871871
val toDouble: NameType = "toDouble"
872872

873-
// primitive operation methods for structual types mostly
873+
// primitive operation methods for structural types mostly
874874
// overlap with the above, but not for these two.
875875
val toCharacter: NameType = "toCharacter"
876876
val toInteger: NameType = "toInteger"

src/reflect/scala/reflect/runtime/SynchronizedTypes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ private[reflect] trait SynchronizedTypes extends internal.Types { self: SymbolTa
8282
override def toStringSubjects = _toStringSubjects.get
8383

8484
/* The idea of caches is as follows.
85-
* When in reflexive mode, a cache is either null, or one sentinal
85+
* When in reflexive mode, a cache is either null, or one sentinel
8686
* value representing undefined or the final defined
87-
* value. Hence, we can ask in non-synchronized ode whether the cache field
87+
* value. Hence, we can ask in non-synchronized mode whether the cache field
8888
* is non null and different from the sentinel (if a sentinel exists).
8989
* If that's true, the cache value is current.
9090
* Otherwise we arrive in one of the defined... methods listed below

src/repl-jline/scala/tools/nsc/interpreter/jline/JLineHistory.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import scala.tools.nsc.interpreter
1515
import scala.tools.nsc.interpreter.session.{History, SimpleHistory}
1616

1717

18-
/** A straight scalification of the jline interface which mixes
18+
/** A straight scalafication of the jline interface which mixes
1919
* in the sparse jline-independent one too.
2020
*/
2121
trait JLineHistory extends JHistory with History {

test/disabled/presentation/akka/src/akka/actor/ActorRef.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ trait ScalaActorRef extends ActorRefShared { ref: ActorRef =>
13841384
"\n\tYou have probably: " +
13851385
"\n\t\t1. Sent a message to an Actor from an instance that is NOT an Actor." +
13861386
"\n\t\t2. Invoked a method on an TypedActor from an instance NOT an TypedActor." +
1387-
"\n\tElse you might want to use 'reply_?' which returns Boolean(true) if succes and Boolean(false) if no sender in scope")
1387+
"\n\tElse you might want to use 'reply_?' which returns Boolean(true) if success and Boolean(false) if no sender in scope")
13881388

13891389
/**
13901390
* Use <code>reply_?(..)</code> to reply with a message to the original sender of the message currently

test/files/pos/t6601/UsePrivateValueClass_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object Test {
2-
// After the first attempt to make seprately compiled value
2+
// After the first attempt to make separately compiled value
33
// classes respect the privacy of constructors, we got:
44
//
55
// exception when typing v.a().==(v.a())/class scala.reflect.internal.Trees$Apply

test/files/pos/t8954/t2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class C {
1919
}
2020

2121
// 2.1 overriding with a deprecated def should be fine
22-
// and also shoudln't trigger the "deprecation is useless"
22+
// and also should not trigger the "deprecation is useless"
2323
// warning
2424
class D extends C {
2525
@deprecated("","") override def foo(): Unit = ???

test/files/presentation/t8941b/IdempotencyTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import reporters.{Reporter => CompilerReporter}
66
import scala.tools.nsc.interactive.InteractiveReporter
77
import scala.reflect.internal.util.SourceFile
88

9-
/** Determistically interrupts typechecking of `code` when a defintion named
10-
* `MagicInterruptionMarker` is typechecked, and then performs a targetted
11-
* typecheck of the tree at the specal comment marker marker
9+
/** Deterministically interrupts typechecking of `code` when a definition named
10+
* `MagicInterruptionMarker` is typechecked, and then performs a targeted
11+
* typecheck of the tree at the special comment marker marker
1212
*/
1313
abstract class IdempotencyTest { self =>
1414
private val settings = new Settings

test/files/run/classfile-format-51.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Opcodes._
1414
//
1515
// By its nature the test can only work on JDK 7+ because under JDK 6 some of the
1616
// classes referred to by DynamicInvoker won't be available and DynamicInvoker won't
17-
// verify. So the test includes a version check that short-circuites the whole test
17+
// verify. So the test includes a version check that short-circuits the whole test
1818
// on JDK 6
1919
object Test extends DirectTest {
2020
override def extraSettings: String = "-optimise -usejavacp -d " + testOutput.path + " -cp " + testOutput.path

test/files/run/complicatedmatch.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object Even{
77
}
88

99
object Test extends App{
10-
val LongWord = "supercalifragilisticexpialadocious";
10+
val LongWord = "supercalifragilisticexpialidocious";
1111

1212
def foo(x : Int, y : String) : Int = (x, y) match {
1313
case (Even(i), "bar") => 1

test/files/run/nothingTypeNoFramesNoDce.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class C {
2626
}
2727

2828
def f5(x: Boolean) = {
29-
// stack heights need to be the smae. ??? looks to the jvm like returning a value of
29+
// stack heights need to be the same. ??? looks to the jvm like returning a value of
3030
// type Nothing$, need to drop or throw it.
3131
println(
3232
if (x) { ???; 10 }

test/files/run/t8010.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ trait Base {
55
def bt(n: Int) = n
66
}
77
trait Derived extends Base {
8-
// was: double defintion error
8+
// was: double definition error
99
override def t = 1 + super.t
1010
override def t(n: Int) = 1 + super.t(n)
1111
override def bt = 1 + super.bt
@@ -14,7 +14,7 @@ trait Derived extends Base {
1414

1515
object Test extends App {
1616
val d = new Derived {}
17-
// not the focus of thie bug, but let's just check the runtime behaviour while we're here.
17+
// not the focus of this bug, but let's just check the runtime behaviour while we're here.
1818
assert(d.t == 2)
1919
assert(d.t(1) == 2)
2020
assert(d.bt == 3)

test/files/scalacheck/quasiquotes/ArbitraryTreesAndNames.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ trait ArbitraryTreesAndNames {
250250
genAppliedTypeTree(size - 1), genTypeBoundsTree(size - 1))
251251

252252
/* These are marker types that allow to write tests that
253-
* depend specificly on Trees that are terms or types.
254-
* They are transparently tranformed to trees through
253+
* depend specifically on Trees that are terms or types.
254+
* They are transparently transformed to trees through
255255
* implicit conversions and liftables for quasiquotes.
256256
*/
257257

test/files/scalacheck/quasiquotes/DefinitionConstructionProps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ trait MethodConstruction { self: QuasiquoteProperties =>
346346
}
347347
}
348348

349-
property("can't unquote annotations with arguments specificed twice") = test {
349+
property("can't unquote annotations with arguments specified twice") = test {
350350
val a = q"new a(x)"
351351
assertThrows[IllegalArgumentException] {
352352
q"@$a(y) def foo"
@@ -370,7 +370,7 @@ trait PackageConstruction { self: QuasiquoteProperties =>
370370
assertEqAst(q"package $name { }", "package foo.bar { }")
371371
}
372372

373-
property("splce name into package name") = test{
373+
property("splice name into package name") = test{
374374
val name = TermName("bippy")
375375
assertEqAst(q"package $name { }", "package bippy { }")
376376
}

0 commit comments

Comments
 (0)