Skip to content

Commit 8bab3d2

Browse files
Updated page metadata to include in tour
The Traits page wasn't being included in the tour TOC, but was being referenced by the tour pages before and after it, Classes and Class Composition with Mixins respectively. Updated the page metadata to include it in the tour, and fix the other tags.
1 parent 88cb2fa commit 8bab3d2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

_tour/traits.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ title: Traits
44

55
discourse: true
66

7-
tutorial: scala-tour
8-
categories: tour
7+
partof: scala-tour
8+
99
num: 5
1010
next-page: mixin-class-composition
1111
previous-page: classes
12-
assumed-knowledge: expressions, classes, generics, objects, companion-objects
12+
topics: traits
13+
prerequisite-knowledge: expressions, classes, generics, objects, companion-objects
14+
15+
redirect_from: "/tutorials/tour/traits.html"
1316
---
1417

1518
Traits are used to share interfaces and fields between classes. They are similar to Java 8's interfaces. Classes and objects can extend traits but traits cannot be instantiated and therefore have no parameters.

0 commit comments

Comments
 (0)