Skip to content

Commit

Permalink
hmap: Fix bad advice in comment (plus a typo).
Browse files Browse the repository at this point in the history
This dates to 2010!

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Justin Pettit <[email protected]>
  • Loading branch information
blp committed Jul 13, 2015
1 parent 7202883 commit 07d2723
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hmap.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 07d2723

Please sign in to comment.