Skip to content

Commit b389c92

Browse files
kshyattKristofferC
authored andcommitted
Little bit of cleanup for manual (#25090)
1 parent 5e1418b commit b389c92

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/src/manual/networking-and-streams.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ All Julia streams expose at least a [`read`](@ref) and a [`write`](@ref) method,
1212
stream as their first argument, e.g.:
1313

1414
```julia-repl
15-
julia> write(STDOUT,"Hello World"); # suppress return value 11 with ;
15+
julia> write(STDOUT, "Hello World"); # suppress return value 11 with ;
1616
Hello World
17-
julia> read(STDIN,Char)
17+
julia> read(STDIN, Char)
1818
1919
'\n': ASCII/Unicode U+000a (category Cc: Other, control)
2020
```
@@ -49,7 +49,7 @@ However, since this is slightly cumbersome, there are several convenience method
4949
example, we could have written the above as:
5050

5151
```julia-repl
52-
julia> read(STDIN,4)
52+
julia> read(STDIN, 4)
5353
abcd
5454
4-element Array{UInt8,1}:
5555
0x61
@@ -92,7 +92,7 @@ Note that the [`write`](@ref) method mentioned above operates on binary streams.
9292
values do not get converted to any canonical text representation but are written out as is:
9393

9494
```jldoctest
95-
julia> write(STDOUT,0x61); # suppress return value 1 with ;
95+
julia> write(STDOUT, 0x61); # suppress return value 1 with ;
9696
a
9797
```
9898

@@ -167,7 +167,7 @@ julia> open(read_and_capitalize, "hello.txt")
167167
"HELLO AGAIN."
168168
```
169169

170-
to open `hello.txt`, call `read_and_capitalize on it`, close `hello.txt` and return the capitalized
170+
to open `hello.txt`, call `read_and_capitalize` on it, close `hello.txt` and return the capitalized
171171
contents.
172172

173173
To avoid even having to define a named function, you can use the `do` syntax, which creates an
@@ -290,10 +290,10 @@ julia> close(clientside)
290290

291291
One of the [`connect`](@ref) methods that does not follow the [`listen`](@ref) methods is
292292
`connect(host::String,port)`, which will attempt to connect to the host given by the `host` parameter
293-
on the port given by the port parameter. It allows you to do things like:
293+
on the port given by the `port` parameter. It allows you to do things like:
294294

295295
```julia-repl
296-
julia> connect("google.com",80)
296+
julia> connect("google.com", 80)
297297
TCPSocket(RawFD(30) open, 0 bytes waiting)
298298
```
299299

0 commit comments

Comments
 (0)