forked from M-Labs/nac3
fix Struct const_struct comment
This commit is contained in:
parent
3f322de9a0
commit
8eb9094d68
|
@ -216,7 +216,7 @@ pub struct Struct<S>(pub S);
|
|||
impl<'ctx, S: StructKind<'ctx>> Struct<S> {
|
||||
/// Create a constant struct value.
|
||||
///
|
||||
/// This function also validates `fields` and panic when there is something wrong.
|
||||
/// This function also validates `fields` and panics types don't match.
|
||||
pub fn const_struct<G: CodeGenerator + ?Sized>(
|
||||
&self,
|
||||
generator: &mut G,
|
||||
|
|
Loading…
Reference in New Issue