diff options
author | twisti <none@none> | 2009-02-27 13:27:09 -0800 |
---|---|---|
committer | twisti <none@none> | 2009-02-27 13:27:09 -0800 |
commit | 20614e5f596b171e644b2325d1b08456b9c5a0f5 (patch) | |
tree | 3e151c366d950a8573d5e7e906dfe28d3c373ba4 /src/share/vm/libadt | |
parent | f26f77db8fb00c8625d1b2c1d8d22f7236e15769 (diff) | |
download | jdk8u_hotspot-20614e5f596b171e644b2325d1b08456b9c5a0f5.tar.gz |
6810672: Comment typos
Summary: I have collected some typos I have found while looking at the code.
Reviewed-by: kvn, never
Diffstat (limited to 'src/share/vm/libadt')
-rw-r--r-- | src/share/vm/libadt/dict.cpp | 6 | ||||
-rw-r--r-- | src/share/vm/libadt/dict.hpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/share/vm/libadt/dict.cpp b/src/share/vm/libadt/dict.cpp index 003dd6a4f..5620f15c5 100644 --- a/src/share/vm/libadt/dict.cpp +++ b/src/share/vm/libadt/dict.cpp @@ -306,7 +306,7 @@ void Dict::print() { // Convert string to hash key. This algorithm implements a universal hash // function with the multipliers frozen (ok, so it's not universal). The // multipliers (and allowable characters) are all odd, so the resultant sum -// is odd - guarenteed not divisible by any power of two, so the hash tables +// is odd - guaranteed not divisible by any power of two, so the hash tables // can be any power of two with good results. Also, I choose multipliers // that have only 2 bits set (the low is always set to be odd) so // multiplication requires only shifts and adds. Characters are required to @@ -326,7 +326,7 @@ int hashstr(const void *t) { } //------------------------------hashptr-------------------------------------- -// Slimey cheap hash function; no guarenteed performance. Better than the +// Slimey cheap hash function; no guaranteed performance. Better than the // default for pointers, especially on MS-DOS machines. int hashptr(const void *key) { #ifdef __TURBOC__ @@ -336,7 +336,7 @@ int hashptr(const void *key) { #endif } -// Slimey cheap hash function; no guarenteed performance. +// Slimey cheap hash function; no guaranteed performance. int hashkey(const void *key) { return (intptr_t)key; } diff --git a/src/share/vm/libadt/dict.hpp b/src/share/vm/libadt/dict.hpp index 93f86829e..a3553ed87 100644 --- a/src/share/vm/libadt/dict.hpp +++ b/src/share/vm/libadt/dict.hpp @@ -86,10 +86,10 @@ class Dict : public ResourceObj { // Dictionary structure // Hashing functions int hashstr(const void *s); // Nice string hash -// Slimey cheap hash function; no guarenteed performance. Better than the +// Slimey cheap hash function; no guaranteed performance. Better than the // default for pointers, especially on MS-DOS machines. int hashptr(const void *key); -// Slimey cheap hash function; no guarenteed performance. +// Slimey cheap hash function; no guaranteed performance. int hashkey(const void *key); // Key comparators |