Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingr committed Feb 23, 2016
1 parent dffcfc7 commit 4f36e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ If the directory still contains items on process exit, then it won't be removed.
var tmp = require('tmp-promise');

tmp.dir().then(o => {
console.log("Dir: ", path);
console.log("Dir: ", o.path);

// Manual cleanup
o.cleanup();
Expand All @@ -100,7 +100,7 @@ You can also use a disposer here which takes care of cleanup automatically:
var tmp = require('tmp-promise');

tmp.withDir(o => {
console.log("Dir: ", path);
console.log("Dir: ", o.path);

// automatic cleanup when the below promise resolves
return somePromiseReturningFn();
Expand Down

0 comments on commit 4f36e32

Please sign in to comment.