From 254ae9614011223a2227cbdab7d5c32e6d518439 Mon Sep 17 00:00:00 2001 From: Hugo Giraudel Date: Thu, 28 Jul 2016 20:25:12 +0200 Subject: [PATCH] Fixed incorrect example in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24ebdff..31d3b30 100755 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ ```javascript var fsp = require('fs-promise'); -fsp.writeFile('/tmp/hello1.txt'), 'hello world') +fsp.writeFile('/tmp/hello1.txt', 'hello world') .then(function(){ - return fsp.readFile('/tmp/hello1.txt'), {encoding:'utf8'}); + return fsp.readFile('/tmp/hello1.txt', {encoding:'utf8'}); }) .then(function(contents){}); ```