From 07d2723a27b54742bec9a52c8c74342da81ca0a9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 12 Jul 2015 21:28:19 -0700 Subject: [PATCH] hmap: Fix bad advice in comment (plus a typo). This dates to 2010! Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- lib/hmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hmap.c b/lib/hmap.c index 938dbc211..b70ce5180 100644 --- a/lib/hmap.c +++ b/lib/hmap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2012, 2013 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2012, 2013, 2015 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,8 +54,8 @@ hmap_destroy(struct hmap *hmap) * not free memory allocated for 'hmap'. * * This function is appropriate when 'hmap' will soon have about as many - * elements as it before. If 'hmap' will likely have fewer elements than - * before, use hmap_destroy() followed by hmap_clear() to save memory and + * elements as it did before. If 'hmap' will likely have fewer elements than + * before, use hmap_destroy() followed by hmap_init() to save memory and * iteration time. */ void hmap_clear(struct hmap *hmap) -- 2.20.1