summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-03-14 10:32:49 -0700
committerDongjoon Hyun <dongjoon@apache.org>2016-03-15 16:20:43 -0700
commit910a18ed14dd81150f008e785f8773bf997eb1f6 (patch)
tree655ea6d2b42e00ccd866435ed01d9dd91407dca6 /spec
parent99a82be91cbb85239f70508f6695c6b21fd3558c (diff)
downloadscala-910a18ed14dd81150f008e785f8773bf997eb1f6.tar.gz
scala-910a18ed14dd81150f008e785f8773bf997eb1f6.tar.bz2
scala-910a18ed14dd81150f008e785f8773bf997eb1f6.zip
Fix some typos in `spec` documents and comments.
Diffstat (limited to 'spec')
-rw-r--r--spec/11-annotations.md2
-rw-r--r--spec/15-changelog.md4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/11-annotations.md b/spec/11-annotations.md
index d66f24abf8..e54a0dd2b0 100644
--- a/spec/11-annotations.md
+++ b/spec/11-annotations.md
@@ -94,7 +94,7 @@ Java platform, the following annotations have a standard meaning.
* `@deprecatedName(name: <symbollit>)`<br/>
Marks a formal parameter name as deprecated. Invocations of this entity
- using named parameter syntax refering to the deprecated parameter name cause a deprecation warning.
+ using named parameter syntax referring to the deprecated parameter name cause a deprecation warning.
### Scala Compiler Annotations
diff --git a/spec/15-changelog.md b/spec/15-changelog.md
index 751a571ecc..c88408682b 100644
--- a/spec/15-changelog.md
+++ b/spec/15-changelog.md
@@ -441,7 +441,7 @@ In the example, `Twice` is an extractor object with two methods:
- The `unapply` method is used to decompose an even number; it is in a sense
the reverse of `apply`. `unapply` methods return option types:
- `Some(...)` for a match that suceeds, `None` for a match that fails.
+ `Some(...)` for a match that succeeds, `None` for a match that fails.
Pattern variables are returned as the elements of `Some`.
If there are several variables, they are grouped in a tuple.
@@ -532,7 +532,7 @@ In particular, one can now simulate package protected access as in Java writing
where would name the package containing `X`.
-#### Relaxation of Private Acess
+#### Relaxation of Private Access
[Private members of a class](05-classes-and-objects.html#private) can now be
referenced from the companion module of the class and vice versa.