Skip to content

Commit

Permalink
Fix doc on getMetadataValue (#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdholtz authored May 25, 2023
1 parent 094e8f2 commit 4a80327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Purchasing/Offering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ extension Offering {

/**
- Returns: the `metadata` value associated to `key` for the expected type,
or `defaultValue` if not found, or it's not the expected type.
or `default` if not found, or it's not the expected type.
*/
public func getMetadataValue<T>(for key: String, default: T) -> T {
guard let rawValue = self.metadata[key], let value = rawValue as? T else {
Expand Down

0 comments on commit 4a80327

Please sign in to comment.