Skip to content

Commit

Permalink
Fix typo in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lowmelvin committed Aug 7, 2023
1 parent e07490c commit 9b7f3e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ FormDataEncoder.encode(data).serialize
// res1: String = "line_items%5B0%5D%5Bprice%5D=price_H5ggYwtDq4fbrJ&line_items%5B0%5D%5Bquantity%5D=2&mode=payment"
```

The compiled version (before `.toList`) is a `Chain[String, String]`,
The compiled version (before `.toList`) is a `Chain[(String, String)]`,
which can be passed directly to http4s's `UrlForm`.

## Basic Usage
Expand Down Expand Up @@ -136,10 +136,10 @@ After this, you can conveniently use `java.time.Instant` in your ADTs:
final case class Person(created_at: Instant)

val jay = Person(Instant.now)
// jay: Person = Person(created_at = 2023-07-30T09:04:47.271721Z)
// jay: Person = Person(created_at = 2023-08-07T06:16:50.648187Z)

FormDataEncoder.encode(jay).compile.toList
// res5: List[Tuple2[String, String]] = List(("created_at", "1690707887"))
// res5: List[Tuple2[String, String]] = List(("created_at", "1691389010"))
```

### FormDataEncoder[T]
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Formify-Scala

Formify is a Scala 3 utility library built to convert
generic product types into the `x-www-form-urlencoded` data format.
case classes into the `x-www-form-urlencoded` data format.
This format is sometimes required by various APIs (notably
the [Stripe API](https://stripe.com/docs/api)
and [Twilio API](https://www.twilio.com/docs/usage/api))
Expand Down Expand Up @@ -54,7 +54,7 @@ FormDataEncoder.encode(data).compile.toList
FormDataEncoder.encode(data).serialize
```

The compiled version (before `.toList`) is a `Chain[String, String]`,
The compiled version (before `.toList`) is a `Chain[(String, String)]`,
which can be passed directly to http4s's `UrlForm`.

## Basic Usage
Expand Down

0 comments on commit 9b7f3e1

Please sign in to comment.