Skip to content

Commit

Permalink
Fix more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
krame505 committed Aug 21, 2024
1 parent f0d8ac7 commit 7067fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/comp/CVPrint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ instance PVPrint CDefn where
pvPrint d p (CprimType (IdKind i k)) =
t"primitive type" <+> pp d i <+> t "::" <+> pp d k

pvPrint d p (Cforeign i ty oname opnames _) =
text "foreign" <+> pvpId d i <+> t "::"
pvPrint d p (Cforeign i ty oname opnames ni) =
text "foreign" <> (if ni then text " noinline" else empty) <+> pvpId d i <+> t "::"
<+> pp d ty
<> (case oname of Nothing -> empty; Just s -> text (" = " ++ show s))
<> (case opnames of
Expand Down
2 changes: 1 addition & 1 deletion src/comp/ContextErrors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ handleCtxRedPrimPort pos (vp, reduced_ps) userty =
handleCtxRedWrapField:: Position -> (VPred, [VPred]) -> FString -> Type -> EMsg
handleCtxRedWrapField pos (vp, reduced_ps) name userty =
(pos, EBadIfcType (getFString name)
"This method uses types that are not in the Bits or SplitPorts typeclass.")
"This method uses types that are not in the Bits or SplitPorts typeclasses.")


-- ========================================================================
Expand Down

0 comments on commit 7067fbe

Please sign in to comment.