Skip to content

Commit

Permalink
Update Data+UTF8.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay-luassat committed Jun 25, 2024
1 parent c0997bc commit fed8079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/WrkstrmFoundation/Extensions/Data+UTF8.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ extension Data {
/// }
/// ```
///
/// - Returns: A `String?` which is the UTF-8 representation of the data, or `nil` if the conversion fails.
/// - Returns: A `String?` which is the UTF-8 representation of the data, or `nil` if the
/// conversion fails.
public func utf8StringValue() -> String? { String(data: self, encoding: .utf8) }
}

0 comments on commit fed8079

Please sign in to comment.