Fix minor typos in the elixir and livebook livebook (#390)

This commit is contained in:
Ben Reinhart 2021-06-23 14:59:17 -07:00 committed by GitHub
parent 0500ad5c62
commit ed072198d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,10 +133,11 @@ case Date.from_iso8601(trimmed) do
end
```
The string passed to `IO.gets/1` must have the same suffix as the
input name and the returned string is always appended with a newline.
This is built-in on top of Erlang's IO protocol and built in a way
that your notebooks can be exported to Elixir scripts and still work!
The string passed to `IO.gets/1` must be prefixed with the name you
assigned to the input. The returned string is always appended with
a newline. This is built-in on top of Erlang's IO protocol and built
in a way that your notebooks can be exported to Elixir scripts and
still work!
Create your own inputs to learn more about the available input types
and options.
@ -180,7 +181,7 @@ Bench.sum()
```
The latest cell should execute orders of magnitude faster than
the previous `Enum.reduce/3` call. While the call `Bench.example()`
the previous `Enum.reduce/3` call. While the call `Bench.sum()`
itself is evaluated, the one million iterations of `Enum.reduce/3`
happen inside a module, which is compiled.