1
0
forked from M-Labs/nac3

fix Struct const_struct comment

This commit is contained in:
lyken 2024-08-25 15:50:14 +08:00
parent 3f322de9a0
commit 8eb9094d68
No known key found for this signature in database
GPG Key ID: 3BD5FC6AC8325DD8

View File

@ -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,