소스 검색

Touch up instructions in a comment

Ian Goldberg 7 달 전
부모
커밋
22253acc49
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      sigma_compiler_core/src/codegen.rs

+ 3 - 3
sigma_compiler_core/src/codegen.rs

@@ -135,9 +135,9 @@ impl CodeGen {
     /// this function.  If `is_vec` is `true`, then you should also call
     /// [`verify_pre_params_append`](Self::verify_pre_params_append)
     /// with code like `quote!{ let mut #id = Vec::<Point>::new();
-    /// #id.resize(#len); }` where `len` is the number of elements you
-    /// expect to have in the vector (computed at runtime, perhaps based
-    /// on the values of public parameters).
+    /// #id.resize(#len, Point::default()); }` where `len` is the number
+    /// of elements you expect to have in the vector (computed at
+    /// runtime, perhaps based on the values of public parameters).
     pub fn gen_point(
         &mut self,
         vars: &mut TaggedVarDict,