Skip to content

Commit a3a5094

Browse files
committed
fix demoDirectory on windows
1 parent f58169e commit a3a5094

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)