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.
2 parents 214257c + 899b110 commit f998af1Copy full SHA for f998af1
docs/book/utils/litgo/literate.go
@@ -57,12 +57,12 @@ func (l Literate) Process(input *plugin.Input) error {
57
chapterDir: chapterDir,
58
bookSrcDir: bookSrcDir,
59
}
60
- path := pathInfo.FullPath()
+ fullPath := pathInfo.FullPath()
61
62
// TODO(directxman12): don't escape root?
63
- contents, err := os.ReadFile(path)
+ contents, err := os.ReadFile(fullPath)
64
if err != nil {
65
- return "", fmt.Errorf("unable to import %q: %v", path, err)
+ return "", fmt.Errorf("unable to import %q: %v", fullPath, err)
66
67
68
return l.extractContents(contents, pathInfo)
0 commit comments