Parcourir la source

Touch up instructions in a comment

Ian Goldberg il y a 6 mois
Parent
commit
22253acc49
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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,