Skip to content

Commit 549dc88

Browse files
committed
Fix many typos in docs and comments
This commit corrects many typos found in scaladocs, comments and documentation. It should reduce a bit number of PRs which fix one typo. There are no changes in the 'real' code except one corrected name of a JUnit test method and some error messages in exceptions. In the case of typos in other method or field names etc., I just skipped them. Obviously this commit doesn't fix all existing typos. I just generated in IntelliJ the list of potential typos and looked through it quickly.
1 parent d9f623d commit 549dc88

File tree

140 files changed

+233
-233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+233
-233
lines changed

spec/04-basic-declarations-and-definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ For every parameter $p_{i,j}$ with a default argument a method named
631631
expression. Here, $n$ denotes the parameter's position in the method
632632
declaration. These methods are parametrized by the type parameter clause
633633
`[$\mathit{tps}\,$]` and all value parameter clauses
634-
`($\mathit{ps}_1$)$\ldots$($\mathit{ps}_{i-1}$)` preceeding $p_{i,j}$.
634+
`($\mathit{ps}_1$)$\ldots$($\mathit{ps}_{i-1}$)` preceding $p_{i,j}$.
635635
The `$f\$$default$\$$n` methods are inaccessible for
636636
user programs.
637637

spec/05-classes-and-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ consists of the following steps.
128128
occurrence in the linearization.
129129
- Finally the statement sequence $\mathit{stats}\,$ is evaluated.
130130

131-
###### Delayed Initializaton
131+
###### Delayed Initialization
132132
The initialization code of an object or class (but not a trait) that follows
133133
the superclass
134134
constructor invocation and the mixin-evaluation of the template's base

spec/06-expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ followed by operators starting with ``|`', etc.
666666

667667
There's one exception to this rule, which concerns
668668
[_assignment operators_](#assignment-operators).
669-
The precedence of an assigment operator is the same as the one
669+
The precedence of an assignment operator is the same as the one
670670
of simple assignment `(=)`. That is, it is lower than the
671671
precedence of any other operator.
672672

@@ -1761,7 +1761,7 @@ trait Dynamic {
17611761
```
17621762

17631763
Assume a selection of the form $e.x$ where the type of $e$ conforms to `scala.Dynamic`.
1764-
Further assuming the selection is not followed by any function arguments, such an expression can be rewitten under the conditions given [here](#implicit-conversions) to:
1764+
Further assuming the selection is not followed by any function arguments, such an expression can be rewritten under the conditions given [here](#implicit-conversions) to:
17651765

17661766
```scala
17671767
$e$.applyDynamic("$x$")

spec/08-pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ case class If[T](c: Term[Boolean],
609609

610610
There are terms to represent numeric literals, incrementation, a zero
611611
test, and a conditional. Every term carries as a type parameter the
612-
type of the expression it representes (either `Int` or `Boolean`).
612+
type of the expression it represents (either `Int` or `Boolean`).
613613

614614
A type-safe evaluator for such terms can be written as follows.
615615

spec/09-top-level-definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The `main` method of a program can be directly defined in the
159159
object, or it can be inherited. The scala library defines a special class
160160
`scala.App` whose body acts as a `main` method.
161161
An objects $m$ inheriting from this class is thus a program,
162-
which executes the initializaton code of the object $m$.
162+
which executes the initialization code of the object $m$.
163163

164164
###### Example
165165
The following example will create a hello world program by defining

src/actors/scala/actors/Actor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ object Actor extends Combinators {
205205
* Actions in `f` have to contain the rest of the computation of `self`,
206206
* as this method will never return.
207207
*
208-
* A common method of continuting the computation is to send a message
208+
* A common method of continuing the computation is to send a message
209209
* to another actor:
210210
* {{{
211211
* react {

src/actors/scala/actors/LinkedQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* and takes when the queue is not empty.
2323
* Normally a put and a take can proceed simultaneously.
2424
* (Although it does not allow multiple concurrent puts or takes.)
25-
* This class tends to perform more efficently than
25+
* This class tends to perform more efficiently than
2626
* other Channel implementations in producer/consumer
2727
* applications.
2828
* <p>[<a href="http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html"> Introduction to this package. </a>]

src/actors/scala/actors/remote/Proxy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private[remote] class Proxy(node: Node, name: Symbol, @transient var kernel: Net
8484
}
8585

8686
// Proxy is private[remote], but these classes are public and use it in a public
87-
// method signature. That makes the only method they have non-overriddable.
87+
// method signature. That makes the only method they have non-overridable.
8888
// So I made them final, which seems appropriate anyway.
8989

9090
final class LinkToFun extends Function2[AbstractActor, Proxy, Unit] with Serializable {

src/actors/scala/actors/threadpool/AbstractCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Written by Dawid Kurzyniec, based on public domain code written by Doug Lea
3-
* and publictly available documentation, and released to the public domain, as
3+
* and publicly available documentation, and released to the public domain, as
44
* explained at http://creativecommons.org/licenses/publicdomain
55
*/
66

src/actors/scala/actors/threadpool/ExecutorCompletionService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public ExecutorCompletionService(Executor executor) {
135135
* @param completionQueue the queue to use as the completion queue
136136
* normally one dedicated for use by this service. This queue is
137137
* treated as unbounded -- failed attempted <tt>Queue.add</tt>
138-
* operations for completed taskes cause them not to be
138+
* operations for completed tasks cause them not to be
139139
* retrievable.
140140
* @throws NullPointerException if executor or completionQueue are <tt>null</tt>
141141
*/

0 commit comments

Comments
 (0)