diff --git a/option/option.go b/option/option.go index 4d9965260..24e3a1ef9 100644 --- a/option/option.go +++ b/option/option.go @@ -41,10 +41,10 @@ type CompileOptions struct { } var ( - // Default value(3) means the compiler only inline 3 layers of nested struct. + // Default value(2) means the compiler only inline 2 layers of nested struct. // when the depth exceeds, the compiler will recurse // and compile subsequent structs when they are decoded - DefaultMaxInlineDepth = 3 + DefaultMaxInlineDepth = 2 // Default value(1) means `Pretouch()` will be recursively executed once, // if any nested struct is left (depth exceeds MaxInlineDepth)