Skip to content

Commit a9de2fc

Browse files
#245 Fix for Invalid URL in README (#246)
1 parent f404617 commit a9de2fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ pub trait Handler<E, O> {
190190

191191
`Handler` provides a default implementation that enables you to provide a Rust closure or function pointer to the `lambda!()` macro.
192192

193-
Optionally, you can pass your own instance of Tokio runtime to the `lambda!()` macro. See our [`with_custom_runtime.rs` example](https://github.com/awslabs/aws-lambda-rust-runtime/tree/master/lambda-runtime/examples/with_custom_runtime.rs)
193+
Optionally, you can pass your own instance of Tokio runtime to the `lambda!()` macro:
194+
```
195+
let rt = tokio::runtime::Runtime::new()?;
196+
lambda!(my_handler, rt);
197+
```
194198

195199
## AWS event objects
196200

0 commit comments

Comments
 (0)