Skip to content

Commit

Permalink
docs: update the code snippets to use the key-path syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioOjeda committed Aug 8, 2023
1 parent 56f0a98 commit f72ef0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftExtended/Optional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public extension Optional {
/// let searchText: String? = "Coffee"
///
/// searchText
/// .filter { $0.count >= 3 }
/// .filter(\.count >= 3)
/// .map(search)
/// ```
///
Expand All @@ -82,7 +82,7 @@ public extension Optional {
/// let searchText: String? = "Coffee"
///
/// searchText
/// .filter(where: { $0.count >= 3 }) { text in
/// .filter(where: \.count >= 3) { text in
/// search(text)
/// }
/// ```
Expand Down

0 comments on commit f72ef0c

Please sign in to comment.