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 6, 2024
1 parent a4a73e8 commit 3e8425d
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
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
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 3e8425d

Please sign in to comment.