summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/sources/lib.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sources/lib.md b/docs/sources/lib.md
index c7b7389b..e9092d3a 100644
--- a/docs/sources/lib.md
+++ b/docs/sources/lib.md
@@ -25,7 +25,7 @@ func main() {
// start grpc api server. this is not mandatory
// but you will be able to use `gobgp` cmd with this.
- g := gobgp.NewGrpcServer(50051, s.GrpcReqCh)
+ g := gobgp.NewGrpcServer(":50051", s.GrpcReqCh)
go g.Serve()
// global configuration