Skip to content

Commit 99817e0

Browse files
authored
Merge pull request #1282 from vrinek/patch-1
Turn code example gender-agnostic
2 parents 9c663e1 + 22584aa commit 99817e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_tour/annotations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ And then apply it as follows
7777
```
7878
@Source(URL = "http://coders.com/",
7979
80-
public class MyClass extends HisClass ...
80+
public class MyClass extends TheirClass ...
8181
```
8282

8383
An annotation application in Scala looks like a constructor invocation, for instantiating a Java annotation one has to use named arguments:
@@ -101,7 +101,7 @@ And then apply it as follows
101101

102102
```
103103
@SourceURL("http://coders.com/")
104-
public class MyClass extends HisClass ...
104+
public class MyClass extends TheirClass ...
105105
```
106106

107107
In this case, Scala provides the same possibility
@@ -116,7 +116,7 @@ The `mail` element was specified with a default value so we need not explicitly
116116
```
117117
@SourceURL(value = "http://coders.com/",
118118
119-
public class MyClass extends HisClass ...
119+
public class MyClass extends TheirClass ...
120120
```
121121

122122
Scala provides more flexibility in this respect

0 commit comments

Comments
 (0)