Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in lineloop.janet example #1561

Closed
wants to merge 1 commit into from
Closed

Conversation

krysros
Copy link
Contributor

@krysros krysros commented Mar 1, 2025

No description provided.

@pyrmont
Copy link
Contributor

pyrmont commented Mar 2, 2025

@krysros I don't think this is a typo. When you use getline, the string that is captured includes the newline character sent when you hit Return. The example uses Janet's prin function (which does not print an additional trailing newline) so as to avoid an empty line in between user input and the echoed output.

@krysros krysros closed this Mar 2, 2025
@krysros
Copy link
Contributor Author

krysros commented Mar 2, 2025

@pyrmont Thank you for the explanation.

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.

2 participants