summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-11-27 22:15:54 +0000
committerinsomniac <insomniacslk@users.noreply.github.com>2018-11-27 22:15:54 +0000
commit319e92b03a0b85eeaee17398b72ee759b2ccf905 (patch)
tree5c3427a22d5e293835b6f60f2d9c58187352eb33 /README.md
parentee4c6d2553989a433e4a13fb130616061558db48 (diff)
simplify client interface (#181)
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9e8850c..9d852fc 100644
--- a/README.md
+++ b/README.md
@@ -59,9 +59,9 @@ func main() {
// return a non-empty packet list even if there is an error. This is
// intended, because the transaction may fail at any point, and we
// still want to know what packets were exchanged until then.
- // The `nil` argument indicates that we want to use a default Solicit
- // packet, instead of specifying a custom one ourselves.
- conversation, err := client.Exchange("eth0", nil)
+ // A default Solicit packet will be used during the "conversation",
+ // which can be manipulated by using modifiers.
+ conversation, err := client.Exchange("eth0")
// Summary() prints a verbose representation of the exchanged packets.
for _, packet := range conversation {