From 6d68b3da4dcfac342f8f36e30864fc95135bdf39 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 10 Dec 2014 21:54:54 +1100 Subject: [PATCH] fix fromAst usage --- doc/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/usage.md b/doc/usage.md index 46baecce82..3e81e93a21 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -98,7 +98,7 @@ to5.transformFile("filename.js", options, function (err, result) { ### to5.transform.fromAst(ast, [code], [opts]) ```javascript -var result = to5.transform(ast, "var a = 2;", opts); +var result = to5.transform.fromAst(ast, "var a = 2;", opts); result.code; result.map; result.ast;