File tree 1 file changed +4
-4
lines changed
docs/docs/usage/scala3doc
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ references the class named `` `immutable.List` `` in package `scala.collection`.
39
39
#### New syntax
40
40
41
41
We have extended Scaladoc definition links to make them a bit more pleasant to
42
- write and read in source. The new syntax features are:
42
+ write and read in source. The aim was also to bring the link and Scala syntax
43
+ closer together. The new features are:
43
44
44
45
1 . ` package ` can be used as a prefix to reference the enclosing package
45
46
Example:
@@ -53,9 +54,8 @@ write and read in source. The new syntax features are:
53
54
def bar = "bar".
54
55
}
55
56
```
56
- Links to the enclosing package in Scaladoc required mentioning the complete
57
- package name. Using the `package` keyword (similarly to how one would use
58
- `this` in expressions) helps make such links shorter.
57
+ The `package` keyword helps make links to the enclosing package shorter
58
+ and a bit more resistant to name refactorings.
59
59
1. `this` can be used as a prefix to reference the enclosing classlike
60
60
Example:
61
61
```
You can’t perform that action at this time.
0 commit comments