From fdd194ee2a2b6fb57210b658ad3ee5b169fa9e3a Mon Sep 17 00:00:00 2001 From: lyken Date: Tue, 27 Aug 2024 17:20:10 +0800 Subject: [PATCH] FnCall::{begin -> builder} --- nac3core/src/codegen/model/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/codegen/model/function.rs b/nac3core/src/codegen/model/function.rs index 62e9f25f..8f934b3c 100644 --- a/nac3core/src/codegen/model/function.rs +++ b/nac3core/src/codegen/model/function.rs @@ -47,7 +47,7 @@ pub struct FnCall<'ctx, 'a, 'b, 'c, 'd, G: CodeGenerator + ?Sized> { } impl<'ctx, 'a, 'b, 'c, 'd, G: CodeGenerator + ?Sized> FnCall<'ctx, 'a, 'b, 'c, 'd, G> { - pub fn begin(generator: &'d mut G, ctx: &'b CodeGenContext<'ctx, 'a>, name: &'c str) -> Self { + pub fn builder(generator: &'d mut G, ctx: &'b CodeGenContext<'ctx, 'a>, name: &'c str) -> Self { FnCall { generator, ctx, name, args: Vec::new(), attrs: Vec::new() } }