@@ -12,9 +12,9 @@ All Julia streams expose at least a [`read`](@ref) and a [`write`](@ref) method,
12
12
stream as their first argument, e.g.:
13
13
14
14
``` julia-repl
15
- julia> write(STDOUT,"Hello World"); # suppress return value 11 with ;
15
+ julia> write(STDOUT, "Hello World"); # suppress return value 11 with ;
16
16
Hello World
17
- julia> read(STDIN,Char)
17
+ julia> read(STDIN, Char)
18
18
19
19
'\n': ASCII/Unicode U+000a (category Cc: Other, control)
20
20
```
@@ -49,7 +49,7 @@ However, since this is slightly cumbersome, there are several convenience method
49
49
example, we could have written the above as:
50
50
51
51
``` julia-repl
52
- julia> read(STDIN,4)
52
+ julia> read(STDIN, 4)
53
53
abcd
54
54
4-element Array{UInt8,1}:
55
55
0x61
@@ -92,7 +92,7 @@ Note that the [`write`](@ref) method mentioned above operates on binary streams.
92
92
values do not get converted to any canonical text representation but are written out as is:
93
93
94
94
``` jldoctest
95
- julia> write(STDOUT,0x61); # suppress return value 1 with ;
95
+ julia> write(STDOUT, 0x61); # suppress return value 1 with ;
96
96
a
97
97
```
98
98
@@ -167,7 +167,7 @@ julia> open(read_and_capitalize, "hello.txt")
167
167
"HELLO AGAIN."
168
168
```
169
169
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
171
171
contents.
172
172
173
173
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)
290
290
291
291
One of the [ ` connect ` ] ( @ref ) methods that does not follow the [ ` listen ` ] ( @ref ) methods is
292
292
` 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:
294
294
295
295
``` julia-repl
296
- julia> connect("google.com",80)
296
+ julia> connect("google.com", 80)
297
297
TCPSocket(RawFD(30) open, 0 bytes waiting)
298
298
```
299
299
0 commit comments