Skip to content

Commit 1d31aad

Browse files
authored
Fix broken link in readme (#299)
The link to the basic example was pointing to the old directory structure. Also remove the explicit error definition.
1 parent 96fc5bc commit 1d31aad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ This package makes it easy to run AWS Lambda Functions written in Rust. This wor
1212
The code below creates a simple function that receives an event with a `firstName` field and returns a message to the caller. Notice: this crate is tested against latest stable Rust.
1313

1414
```rust,no_run
15-
use lambda_runtime::{handler_fn, Context};
15+
use lambda_runtime::{handler_fn, Context, Error};
1616
use serde_json::{json, Value};
1717
18-
type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
19-
2018
#[tokio::main]
2119
async fn main() -> Result<(), Error> {
2220
let func = handler_fn(func);
@@ -31,7 +29,7 @@ async fn func(event: Value, _: Context) -> Result<Value, Error> {
3129
}
3230
```
3331

34-
The code above is the same as the [basic example](https://github.com/awslabs/aws-lambda-rust-runtime/blob/master/lambda/examples/hello-without-macro.rs) in the `lambda_runtime` crate.
32+
The code above is the same as the [basic example](https://github.com/awslabs/aws-lambda-rust-runtime/blob/master/lambda-runtime/examples/basic.rs) in the `lambda_runtime` crate.
3533

3634
### Deployment
3735

0 commit comments

Comments
 (0)