Skip to content

Commit

Permalink
fix rust language example (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
voigt authored Aug 16, 2023
1 parent 42dfc27 commit c390c95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/languages/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ In this example, the worker will get a request and print all the related informa
use wasm_workers_rs::{
worker,
http::{self, HeaderValue, Request, Response},
Content,
};
#[worker]
fn reply(req: Request<String>) -> Result<Response<String>> {
fn reply(req: Request<String>) -> Result<Response<Content>> {
// Applied changes here to use the Response method. This requires changes
// on signature and how it returns the data.
let response = format!(
Expand Down

0 comments on commit c390c95

Please sign in to comment.