Skip to content

Commit

Permalink
Libraries Guide: Fix type of continuousAssert
Browse files Browse the repository at this point in the history
Also fix the type in the Literate Haskell comments in the Assert
package itself, even though they are not used to generate the
document now.
  • Loading branch information
quark17 committed Apr 5, 2024
1 parent 4d95340 commit 4f8b20a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/libraries_ref_guide/LibDoc/Assert.tex
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ \subsubsection{Assert}
& \\
\cline{2-2}
&\begin{libverbatim}
function Action continuousAssert(Bool b, String s);
module continuousAssert#(Bool b, String s)(Empty);
\end{libverbatim}
\\
\hline
Expand Down
2 changes: 1 addition & 1 deletion src/Libraries/Base1/Assert.bs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ nullModule =
--@ Continuous run-time assertion (expected to be True on each clock).
--@ Can be used anywhere a module instantiation is valid.
--@ \begin{libverbatim}
--@ function Action continuousAssert(Bool b);
--@ module continuousAssert#(Bool b, String s)(Empty);
--@ \end{libverbatim}
continuousAssert :: (IsModule m c) => Bool -> String -> m Empty
continuousAssert = if not testAssert then (\_ _ -> nullModule)
Expand Down

0 comments on commit 4f8b20a

Please sign in to comment.