Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-10-02 01:42:08 +0400
committerNoah Campbell <noahcampbell@gmail.com>2013-10-08 20:37:50 +0400
commit80009b427fdc9ccac3d27218e41f0fa378087e87 (patch)
treee366e3a3d1aae3a6152a16f01138d7ef3b0e2805 /transform/posttrans_test.go
parent94a3184ad0e037f9faefda2bc330503b01f21016 (diff)
Change the order of Apply to be more Unixy
Typically the destination is on the left and the src is on the right.
Diffstat (limited to 'transform/posttrans_test.go')
-rw-r--r--transform/posttrans_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/transform/posttrans_test.go b/transform/posttrans_test.go
index 3cac6e76b..8ec004e87 100644
--- a/transform/posttrans_test.go
+++ b/transform/posttrans_test.go
@@ -38,7 +38,7 @@ var abs_url_tests = []test {
func apply(t *testing.T, tr Transformer, tests []test) {
for _, test := range tests {
out := new(bytes.Buffer)
- err := tr.Apply(strings.NewReader(test.content), out)
+ err := tr.Apply(out, strings.NewReader(test.content))
if err != nil {
t.Errorf("Unexpected error: %s", err)
}