aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2a6df43..f9dcc59 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ The tables covers both IPv4 and IPv6, and values are any erlang term, stored in
table = RoutingTable.new()
RoutingTable.add(table, {10, 69, 0, 0}, 16, :vpn)
RoutingTable.add(table, {10, 69, 1, 0}, 24, :lan)
-:vpn = RoutingTable.longest_match(table, {10, 69, 2, 1})
-:lan = RoutingTable.longest_match(table, {10, 69, 1, 1})
-nil = RoutingTable.longest_match(table, {10, 68, 1, 1})
+:vpn = RoutingTable.lookup(table, {10, 69, 2, 1})
+:lan = RoutingTable.lookup(table, {10, 69, 1, 1})
+nil = RoutingTable.lookup(table, {10, 68, 1, 1})
```