Skip to content

Commit

Permalink
Merge pull request #63 from edwargix/master
Browse files Browse the repository at this point in the history
Fix var name in README
  • Loading branch information
Stebalien authored Jun 2, 2020
2 parents e767633 + 5fada58 commit 7aa809d
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 7aa809d

Please sign in to comment.