From 520e2da928ab927a54369f1d023860b0998c1e6c Mon Sep 17 00:00:00 2001 From: Yogendra Sharma Date: Fri, 24 Jul 2020 13:05:36 +0530 Subject: [PATCH] #245 Fix for Invalid URL in README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae54457d..bd8a6d4a 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,11 @@ pub trait Handler { `Handler` provides a default implementation that enables you to provide a Rust closure or function pointer to the `lambda!()` macro. -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) +Optionally, you can pass your own instance of Tokio runtime to the `lambda!()` macro: +``` +let rt = tokio::runtime::Runtime::new()?; +lambda!(my_handler, rt); +``` ## AWS event objects