From 242b3fd6f722e669f64754e1beb2bfa11666a795 Mon Sep 17 00:00:00 2001 From: Michael Maloney Date: Fri, 25 Oct 2024 16:03:07 -0700 Subject: [PATCH] Typo: defination -> definition --- .../chisel3/experimental/hierarchy/Instantiate.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala-2/chisel3/experimental/hierarchy/Instantiate.scala b/core/src/main/scala-2/chisel3/experimental/hierarchy/Instantiate.scala index f4af49d9a6..eee97db646 100644 --- a/core/src/main/scala-2/chisel3/experimental/hierarchy/Instantiate.scala +++ b/core/src/main/scala-2/chisel3/experimental/hierarchy/Instantiate.scala @@ -57,7 +57,7 @@ object Instantiate extends InstantiateImpl { ): Instance[A] = _instanceImpl(args, f) /** This is not part of the public API, do not call directly! */ - def _defination[K, A <: BaseModule: ru.WeakTypeTag]( + def _definition[K, A <: BaseModule: ru.WeakTypeTag]( args: K, f: K => A ): Definition[A] = _definitionImpl(args, f) @@ -160,11 +160,11 @@ object Instantiate extends InstantiateImpl { val funcArgTypes = args.map(_.asInstanceOf[Tree].tpe.widen) val constructor = q"(($funcArg: (..$funcArgTypes)) => new $tpname[..$tparams](...$conArgs))" val tup = q"(..$args)" - q"chisel3.experimental.hierarchy.Instantiate._defination[(..$funcArgTypes), $tpname]($tup, $constructor)" + q"chisel3.experimental.hierarchy.Instantiate._definition[(..$funcArgTypes), $tpname]($tup, $constructor)" case _ => val msg = - s"Argument to Instantiate.defination(...) must be of form 'new ()'.\n" + + s"Argument to Instantiate.definition(...) must be of form 'new ()'.\n" + "Note that named arguments are currently not supported.\n" + s"Got: '$con'" c.error(con.pos, msg)