Fix typo in doc
diff --git a/doc/libffi.texi b/doc/libffi.texi
index 57dae0b..a2b1242 100644
--- a/doc/libffi.texi
+++ b/doc/libffi.texi
@@ -534,7 +534,7 @@ writable and executable addresses.
@section Closure Example
A trivial example that creates a new @code{puts} by binding
-@code{fputs} with @code{stdin}.
+@code{fputs} with @code{stdout}.
@example
#include <stdio.h>