Skip to content

Commit

Permalink
fix: deployment documentation example application
Browse files Browse the repository at this point in the history
The `src/my_web_app.gleam` code is not working, I'm getting this error at run/build:

```
error: Unknown module
...
 β”‚ import gleam/byte_builder
  β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^
```

I replaced `byte_builder` by `bytes_builder` in the script and it was ok
  • Loading branch information
davlgd authored and lpil committed Mar 5, 2024
1 parent c20b18b commit a40ab64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/fly.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defines a micro web application.
```gleam
import mist
import gleam/erlang/process
import gleam/byte_builder
import gleam/bytes_builder
import gleam/http/response.{Response}
pub fn main() {
Expand All @@ -42,7 +42,7 @@ pub fn main() {
}
fn web_service(_request) {
let body = byte_builder.from_string("Hello, Joe!")
let body = bytes_builder.from_string("Hello, Joe!")
Response(200, [], mist.Bytes(body))
}
```
Expand Down

0 comments on commit a40ab64

Please sign in to comment.