From f1a0b2de28e79c383baf87a4333449891520a413 Mon Sep 17 00:00:00 2001 From: Alex Ozdemir Date: Sun, 20 Jan 2019 11:27:53 -0800 Subject: [PATCH 1/2] Wrote some minimal documentation for lambda macro --- lambda-runtime/src/runtime.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lambda-runtime/src/runtime.rs b/lambda-runtime/src/runtime.rs index caac0983..0dcae2b8 100644 --- a/lambda-runtime/src/runtime.rs +++ b/lambda-runtime/src/runtime.rs @@ -45,6 +45,9 @@ where } #[macro_export] +/// Starts an event listener which will parse incoming event into the even type requested by +/// `handler` and will invoke `handler` on each incoming event. Can optionally by passed a Tokio +/// `runtime` to build the listener on. If none is provided, it creates its own. macro_rules! lambda { ($handler:ident) => { $crate::start($handler, None) From ee9ded222fbc160bc38be6213e3614b79d41d214 Mon Sep 17 00:00:00 2001 From: Alex Ozdemir Date: Sun, 20 Jan 2019 11:38:17 -0800 Subject: [PATCH 2/2] Fix typos --- lambda-runtime/src/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda-runtime/src/runtime.rs b/lambda-runtime/src/runtime.rs index 0dcae2b8..d8726a5e 100644 --- a/lambda-runtime/src/runtime.rs +++ b/lambda-runtime/src/runtime.rs @@ -45,8 +45,8 @@ where } #[macro_export] -/// Starts an event listener which will parse incoming event into the even type requested by -/// `handler` and will invoke `handler` on each incoming event. Can optionally by passed a Tokio +/// Starts an event listener which will parse incoming events into the even type requested by +/// `handler` and will invoke `handler` on each incoming event. Can optionally be passed a Tokio /// `runtime` to build the listener on. If none is provided, it creates its own. macro_rules! lambda { ($handler:ident) => {