From a40ab648a2b2df1fd9e5472a2c72340d46a0c097 Mon Sep 17 00:00:00 2001 From: David Legrand <1110600+davlgd@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:58:04 +0100 Subject: [PATCH] fix: deployment documentation example application MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- deployment/fly.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/fly.md b/deployment/fly.md index 98d2fd97..9c13f99d 100644 --- a/deployment/fly.md +++ b/deployment/fly.md @@ -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() { @@ -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)) } ```