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

Resolved the documentation errors #400

Closed
wants to merge 4 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/docs/scheme-intro/input-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ There is also a function that write single character `(write-char x)`

## Standard input

The standard input is a way to get stuff from the user. Scheme provide one function for this which
is `read`. The function wait for the user to type something and return single
The standard input is a way to get stuff from the user. Scheme provides one function for this which
is `read`. The function waits for the user to type something and return single
[S-Expression](/docs/scheme-intro/what-is-lisp#s-expressions).

Example:
Expand Down Expand Up @@ -159,7 +159,7 @@ If you first evaluated the code that writes into a file `test-2.scm` you should
was written into it. Note that `read` was called two times and read two expressions (two strings).

Same as with output-port you need to call `close-input-port` procedure to close the input port. But
Scheme, same as with output port have handy function that allow to close the port automagically.
Scheme, same as with output port have handy function that allow to close the port automatically.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't fixed this:

This is not an error, see "automagically" in Jargon File.


```scheme
(call-with-input-file "test.scm"
Expand Down Expand Up @@ -345,8 +345,8 @@ Some scheme implementations have `with-input-from-string` procedure:
;; ==> 10 (1 2 3 4)
```

Procedure `with-input-from-string` changes the current-input-port so you can use `read` without an
argument.
The procedure `with-input-from-string` changes the current-input-port so you can use `read` without
an argument.

Another useful procedure that some Scheme implementations have is `read-all`. It read all the
S-Expressions from a port and return them as a list.
Expand Down