wasmCloud / wasmcloud-dev-site

Documentation site for wasmCloud.dev
https://wasmcloud.dev
8 stars 15 forks source link

Getting Started docs - minor typos #144

Open gmlewis opened 2 years ago

gmlewis commented 2 years ago

On this page: https://wasmcloud.dev/app-dev/create-actor/run/

it says you should get the response: Hello World and later Hello Carol, but if you ran the tutorial for TinyGo, then the response is hello in both cases because of this code:

func (e *EchoTinygo) HandleRequest(ctx *actor.Context, req httpserver.HttpRequest) (*httpserver.HttpResponse, error) {
    r := httpserver.HttpResponse{
        StatusCode: 200,
        Header:     make(httpserver.HeaderMap, 0),
        Body:       []byte("hello"),
    }
    return &r, nil
}