[wgsl-in] Doc fix for Lowerer::constructor.

This commit is contained in:
Jim Blandy 2023-10-20 22:09:07 -07:00
parent 93ae5cc82e
commit 65f2216ecf

View File

@ -489,14 +489,8 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
/// in [`ctx.module`] a suitable Naga `Type` and return a /// in [`ctx.module`] a suitable Naga `Type` and return a
/// [`ConcreteConstructorHandle::Type`] value holding its handle. /// [`ConcreteConstructorHandle::Type`] value holding its handle.
/// ///
/// Note that constructing an [`Array`] type may require inserting
/// [`Constant`]s as well as `Type`s into `ctx.module`, to represent the
/// array's length.
///
/// [`Type`]: crate::Type /// [`Type`]: crate::Type
/// [`ctx.module`]: ExpressionContext::module /// [`ctx.module`]: ExpressionContext::module
/// [`Array`]: crate::TypeInner::Array
/// [`Constant`]: crate::Constant
fn constructor<'out>( fn constructor<'out>(
&mut self, &mut self,
constructor: &ast::ConstructorType<'source>, constructor: &ast::ConstructorType<'source>,