aboutsummaryrefslogtreecommitdiffstats
path: root/examples/cmd/union-example/union_example.go
diff options
context:
space:
mode:
authorRastislav Szabo <raszabo@cisco.com>2018-12-13 12:03:49 +0000
committerGerrit Code Review <gerrit@fd.io>2018-12-13 12:03:49 +0000
commit5f1917fd11e8562ef4094b7ce3a89af66ace5792 (patch)
tree02309976390883716e4a819d3b5969091069a750 /examples/cmd/union-example/union_example.go
parent6bfc1a27011d44cbf915607feb276a847148dd30 (diff)
parent868b541e296dc47748ad03b8f0174c828d996529 (diff)
Merge "Add support for aliases and boolean type"
Diffstat (limited to 'examples/cmd/union-example/union_example.go')
-rw-r--r--examples/cmd/union-example/union_example.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cmd/union-example/union_example.go b/examples/cmd/union-example/union_example.go
index bb6c8a1..0f801d2 100644
--- a/examples/cmd/union-example/union_example.go
+++ b/examples/cmd/union-example/union_example.go
@@ -26,7 +26,7 @@ import (
func main() {
// create union with IPv4 address
var unionIP4 ip.AddressUnion
- unionIP4.SetIP4(ip.IP4Address{Address: []byte{192, 168, 1, 10}})
+ unionIP4.SetIP4(ip.IP4Address{192, 168, 1, 10})
// use it in the Address type
addr := &ip.Address{