Skip to content

Commit

Permalink
fix: document NodeSort
Browse files Browse the repository at this point in the history
  • Loading branch information
kevboh committed Apr 5, 2021
1 parent 57bc788 commit 19933d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Yams/Emitter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import CYaml
#endif
import Foundation

/// A sort predicate applied to two `Node`s. Return `true` when the first node should be ordered
/// before the second.
public typealias NodeSort = (Node, Node) throws -> Bool

/// Produce a YAML string from objects.
Expand Down

0 comments on commit 19933d7

Please sign in to comment.