-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgolden
40 lines (39 loc) · 908 Bytes
/
golden
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// # Heading
///
/// ## *Second-level heading, italic*
///
/// Paragraphs of documentation for the ``Data`` type. This line should wrap according to your
/// preference.
///
/// Some additional markup: *emphasis*, **bold**, `monospaced`.
///
/// ### **Lists**
///
/// Unordered
///
/// - Unordered item
/// - Second unordered item
/// - Third unordered item
///
/// Ordered
///
/// 1. Ordered item
/// 2. Second ordrered item
/// 3. Third ordered item
///
/// ## Code block
///
/// func fibonacci(_ n: Int) -> Int {
/// guard n != 0, n != 1 else { return n }
/// return fibonacci(n - 1) + fibonacci(n - 2)
/// }
public struct Data {
/// First field, it's an Int
public var first: Int
/// Second field, it's maybe an Int
public var second: Int?
public init(first: Int, second: Int? = nil) {
self.first = first
self.second = second
}
}