From 0db6ae1282a92b4b2f49c143c87a89e77bf835c8 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 9 Aug 2022 13:25:22 +0800 Subject: [PATCH] style(cli): update lib.rs --- cli/src/new/lib-rs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/new/lib-rs.ts b/cli/src/new/lib-rs.ts index 55dfb167..6789aa7a 100644 --- a/cli/src/new/lib-rs.ts +++ b/cli/src/new/lib-rs.ts @@ -4,7 +4,7 @@ export const LibRs = `#![deny(clippy::all)] extern crate napi_derive; #[napi] -fn sum(a: i32, b: i32) -> i32 { +pub fn sum(a: i32, b: i32) -> i32 { a + b } `