aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-map.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-07-14 06:08:44 -0700
committerNathan Sidwell <nathan@acm.org>2020-07-14 06:29:12 -0700
commitbf567bb3b3cb43e299e947bbdfa00da416de0890 (patch)
tree1cbec6e68933fb3df8088ceb2496fc2e2200c697 /gcc/hash-map.h
parent31dbaab57fef485412a0369a222b9c252ad2713b (diff)
downloadgcc-bf567bb3b3cb43e299e947bbdfa00da416de0890.zip
gcc-bf567bb3b3cb43e299e947bbdfa00da416de0890.tar.gz
gcc-bf567bb3b3cb43e299e947bbdfa00da416de0890.tar.bz2
core: formatting & comment
One of hash_map's getters returns a pointer to T or null, The comment said it returned T or null. Also an unaligned pair of comments. gcc/ * hash-map.h (hash_map::get): Note it is a pointer to value. * incpath.h (incpath_kind): Align comments.
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r--gcc/hash-map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h
index 5b8fd18..6bf3dc6 100644
--- a/gcc/hash-map.h
+++ b/gcc/hash-map.h
@@ -177,7 +177,8 @@ public:
return !ins;
}
- /* if the passed in key is in the map return its value otherwise NULL. */
+ /* If the passed in key is in the map return pointer to its value
+ otherwise NULL. */
Value *get (const Key &k)
{