Skip to content

Commit d6e2d7c

Browse files
committed
Minor clarifications.
1 parent 664bc15 commit d6e2d7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sips/pending/_posts/2016-01-11-static-members.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Some JVM and JavaScript frameworks require classes to have specific static field
1818

1919
For example, classes extending `android.os.Parcelable` are required to have a static field named `CREATOR` of type `android.os.Parcelable$Creator`.
2020

21-
Another example is using an [`AtomicReferenceFieldUpdater`](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.html).
21+
Another example is using an [`AtomicReferenceFieldUpdater`](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.html).
2222

2323
On the JavaScript side, one example is [Relay Route Definitions](https://facebook.github.io/relay/docs/guides-routes.html), whose subclasses must define static fields such as `queries`.
2424
Static methods and fields for JavaScript classes are one of the very few things (if not the only thing) that Scala.js "cannot do" at the moment, at least not declaratively.
@@ -103,8 +103,8 @@ object O {
103103
```
104104

105105
Under the proposed scheme users will be able to opt-in to have the field `f` defined in the inner object `I` emited as a static field.
106-
In case `O.d` is annotated with `@static` the field will be crated as a static field in `class O`.
107-
If not annotated, it will be created in the companion module with a static forwarder in `class O`.
106+
In case `O.d` is annotated with `@static` the field will be crated as a static field `d` in `class O`.
107+
If not annotated, it will be created in the companion module with a static forwarder `d` in `class O`.
108108

109109
## Restrictions ##
110110

0 commit comments

Comments
 (0)