Skip to content

Commit

Permalink
Documentation update based on @TotalVerb review, fixing the example
Browse files Browse the repository at this point in the history
  • Loading branch information
TeroFrondelius committed Mar 4, 2017
1 parent 91dd2f0 commit 175ab5c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,20 +240,21 @@ julia> if is_windows()
else # linux, osx
pipe_lm = tempname()
end
"/tmp/juliaeQz3oF"
"/tmp/julial73DPo"

julia> server_lm = @async lintserver(pipe_lm,"lint-message")
Server running on port/pipe /tmp/juliaeQz3oF ...
Task (queued) @0x00007f11d0b64760
Server running on port/pipe /tmp/julial73DPo ...
Task (queued) @0x00007f1b20a38280

julia> json_input1 = JSON.json(Dict("file" => "none", "code_str" => "something"))
"{\"file\":\"none\",\"code_str\":\"something\"}"
julia> input = Dict("file" => "none", "code_str" => "something")
Dict{String,String} with 2 entries:
"file" => "none"
"code_str" => "something"

julia> conn = connect(pipe_lm)
Base.PipeEndpoint(open, 0 bytes waiting)

julia> write(conn, json_input1)
38
julia> JSON.print(conn, input)

julia> out = JSON.parse(conn)
1-element Array{Any,1}:
Expand All @@ -268,7 +269,7 @@ Dict{String,Any} with 6 entries:
"code" => "E321"
"variable" => "something"

julia>
julia>
```
`lintserver(port,style)` style will accept four values:

Expand Down

0 comments on commit 175ab5c

Please sign in to comment.