Skip to content

Commit

Permalink
Fix var name in README
Browse files Browse the repository at this point in the history
  • Loading branch information
edwargix committed Jun 2, 2020
1 parent e767633 commit 5fada58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Full documentation can be read at [Godoc](https://godoc.org/github.com/libp2p/go
A simple `http.Server` on libp2p works as:

```go
listener, _ := gostream.Listen(host1, p2phttp.P2PProtocol)
listener, _ := gostream.Listen(host1, p2phttp.DefaultP2PProtocol)
defer listener.Close()
go func() {
http.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 5fada58

Please sign in to comment.