Skip to content

Commit

Permalink
document string extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneenders committed Jun 29, 2024
1 parent a0048dc commit ca870fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ChromaShell/Blocks/BulitInBlocks/TextBlock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ extension Text {
}
}

/// Extends the String type to make writing declarative code easier and try to
/// require less type annotations.
extension String: Block {
public var component: some Block {
Text(self)
Expand Down

0 comments on commit ca870fb

Please sign in to comment.