Skip to content

Commit 921ddeb

Browse files
committed
Number list items in doc page
1 parent f62992c commit 921ddeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/other-new-features/open-classes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ Classes that are not open can still be extended, but only if at least one of two
5050

5151
When writing a class, there are three possible expectations of extensibility:
5252

53-
- The class is intended to allow extensions. This means one should expect
53+
1. The class is intended to allow extensions. This means one should expect
5454
a carefully worked out and documented extension contract for the class.
5555

56-
- Extensions of the class are forbidden, for instance to make correctness or security guarantees.
56+
2. Extensions of the class are forbidden, for instance to make correctness or security guarantees.
5757

58-
- There is no firm decision either way. The class is not _a priori_ intended for extensions, but if others find it useful to extend on an _ad-hoc_ basis, let them go ahead. However, they are on their own in this case. There is no documented extension contract, and future versions of the class might break the extensions (by rearranging internal call patterns, for instance).
58+
3. There is no firm decision either way. The class is not _a priori_ intended for extensions, but if others find it useful to extend on an _ad-hoc_ basis, let them go ahead. However, they are on their own in this case. There is no documented extension contract, and future versions of the class might break the extensions (by rearranging internal call patterns, for instance).
5959

6060
The three cases are clearly distinguished by using `open` for (1), `final` for (2) and no modifier for (3).
6161

0 commit comments

Comments
 (0)