Skip to content

Commit 9919eb6

Browse files
committed
Merge pull request #84 from simonjefford/path-fix
fix demoDirectory on windows
2 parents bb09447 + fb281cd commit 9919eb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration/demo_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package configuration
22

33
import (
4-
"fmt"
54
"os"
5+
"path/filepath"
66
)
77

88
func Demo() (c Config, err error) {
@@ -23,6 +23,6 @@ func demoDirectory() (dir string, err error) {
2323
if err != nil {
2424
return
2525
}
26-
dir = fmt.Sprintf("%s/exercism-demo", dir)
26+
dir = filepath.Join(dir, "exercism-demo")
2727
return
2828
}

0 commit comments

Comments
 (0)