about summary refs log tree commit diff
path: root/manual/examples/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples/dir.c')
-rw-r--r--manual/examples/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/examples/dir.c b/manual/examples/dir.c
index b90f72da03..59ec62c84c 100644
--- a/manual/examples/dir.c
+++ b/manual/examples/dir.c
@@ -19,7 +19,7 @@ main (void)
       (void) closedir (dp);
     }
   else
-    puts ("Couldn't open the directory.");
+    perror ("Couldn't open the directory");
 
   return 0;
 }