Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1028 committed Aug 21, 2018
1 parent 865b137 commit ea514f9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Sources/ArraySection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct ArraySection<Model: Differentiable, Element: Differentiable>: Diff
@inline(__always) get { return model.differenceIdentifier }
}

/// Creates a section from the model and the elements.
/// Creates a section with the model and the elements.
///
/// - Parameters:
/// - model: A differentiable model of section.
Expand All @@ -24,7 +24,7 @@ public struct ArraySection<Model: Differentiable, Element: Differentiable>: Diff
self.elements = Array(elements)
}

/// Creates a new section reproding the given source section with replacing the elements.
/// Creates a new section reproducing the given source section with replacing the elements.
///
/// - Parameters:
/// - source: A source section to reproduce.
Expand Down Expand Up @@ -59,11 +59,11 @@ extension ArraySection: Equatable where Model: Equatable, Element: Equatable {
extension ArraySection: CustomDebugStringConvertible {
public var debugDescription: String {
guard !elements.isEmpty else {
return "Section(model: \(model), elements: [])"
return "ArraySection(model: \(model), elements: [])"
}

return """
Section(
ArraySection(
model: \(model),
elements: \(elements)
)
Expand Down
2 changes: 1 addition & 1 deletion Sources/DifferentiableSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public protocol DifferentiableSection: Differentiable {
/// The collection of element in the section.
var elements: Collection { get }

/// Creates a new section reproding the given source section with replacing the elements.
/// Creates a new section reproducing the given source section with replacing the elements.
///
/// - Parameters:
/// - source: A source section to reproduce.
Expand Down
2 changes: 1 addition & 1 deletion docs/Protocols/DifferentiableSection.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Creates a new section reproding the given source section with replacing the elements.</p>
<p>Creates a new section reproducing the given source section with replacing the elements.</p>

</div>
<div class="declaration">
Expand Down
4 changes: 2 additions & 2 deletions docs/Structs/ArraySection.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Creates a section from the model and the elements.</p>
<p>Creates a section with the model and the elements.</p>

</div>
<div class="declaration">
Expand Down Expand Up @@ -244,7 +244,7 @@ <h4>Parameters</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Creates a new section reproding the given source section with replacing the elements.</p>
<p>Creates a new section reproducing the given source section with replacing the elements.</p>

</div>
<div class="declaration">
Expand Down
2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

0 comments on commit ea514f9

Please sign in to comment.