From 596850cca54e630a3fe6e77debf78437570f0fa1 Mon Sep 17 00:00:00 2001 From: Theotime Leveque Date: Sat, 25 Mar 2017 18:31:14 -0400 Subject: [PATCH] readme: remove inferred type from AppFs declaration. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9e3327..aef6962 100644 --- a/README.md +++ b/README.md @@ -61,11 +61,11 @@ import "github.com/spf13/afero" First define a package variable and set it to a pointer to a filesystem. ```go -var AppFs afero.Fs = afero.NewMemMapFs() +var AppFs = afero.NewMemMapFs() or -var AppFs afero.Fs = afero.NewOsFs() +var AppFs = afero.NewOsFs() ``` It is important to note that if you repeat the composite literal you will be using a completely new and isolated filesystem. In the case of