We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a7345 commit 60b6ed7Copy full SHA for 60b6ed7
1 file changed
workspace/document.go
@@ -8,9 +8,9 @@ type Document struct {
8
RelativePath string
9
}
10
11
-// NewDocument creates a document from a relative filepath.
+// NewDocument creates a document from the filepath.
12
// The root is typically the root of the exercise, and
13
-// path is the relative path to the file within the root directory.
+// path is the absolute path to the file.
14
func NewDocument(root, path string) (Document, error) {
15
path, err := filepath.Rel(root, path)
16
if err != nil {
0 commit comments