Skip to content

docs(api): fix tmpfile('f2.txt') example output path#1487

Open
KirtiRamchandani wants to merge 1 commit into
google:mainfrom
KirtiRamchandani:docs/fix-tmpfile-example-filename
Open

docs(api): fix tmpfile('f2.txt') example output path#1487
KirtiRamchandani wants to merge 1 commit into
google:mainfrom
KirtiRamchandani:docs/fix-tmpfile-example-filename

Conversation

@KirtiRamchandani

Copy link
Copy Markdown

Summary

Fixes incorrect inline comment in the tmpfile() docs example.

Fixes #1469

Problem

docs/api.md showed the result path ending in foo.txt even though the argument is 'f2.txt'.

Root cause

Copy/paste error. tempfile() in src/goods.ts uses path.join(tempdir(), name), preserving the basename.

Fix

Update the comment to .../f2.txt.

Testing

Verified against tempfile() implementation in src/goods.ts (docs-only change).

The inline comment incorrectly showed foo.txt even though tmpfile()
joins the provided name verbatim under the temp directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(api): tmpfile('f2.txt') example shows wrong output filename (foo.txt)

1 participant