diff --git a/doc/dynare.texi b/doc/dynare.texi
index b1d24cccc6e726b34023e5061b3c1193f8f88df5..c6dc35b9d46efa772e4f460a6c61b1aafd267018 100644
--- a/doc/dynare.texi
+++ b/doc/dynare.texi
@@ -4836,7 +4836,7 @@ end;
 @deffnx {Macro directive} @@#endif
 Conditional inclusion of some part of the @file{.mod} file. 
 The lines between @code{@@#if} and the next @code{@@#else} or
-@code{@@#end} is executed only if the condition evaluates to a
+@code{@@#endif} is executed only if the condition evaluates to a
 non-null integer. The @code{@@#else} branch is optional and, if
 present, is only evaluated if the condition evaluates to @code{0}.