summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-09-17 22:34:45 +0000
committerNicholas Clark <nick@ccl4.org>2007-09-17 22:34:45 +0000
commit33647f775b7d2f1177b00b78ed3508ffd5053c2e (patch)
tree9382da2c83b40946ad9980d42209af19f6b208ed /t
parent83029685b27ec04c6417a2eb865ffed0921d39ae (diff)
downloadperl-33647f775b7d2f1177b00b78ed3508ffd5053c2e.tar.gz
Fix spelling errors in comments.
p4raw-id: //depot/perl@31890
Diffstat (limited to 't')
-rw-r--r--t/op/hash.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/op/hash.t b/t/op/hash.t
index 15a336e3be..6e1b4daa4b 100644
--- a/t/op/hash.t
+++ b/t/op/hash.t
@@ -30,7 +30,7 @@ ok (Internals::HvREHASH(%h), "20 entries triggers rehash");
# second part using an emulation of the PERL_HASH in perl, mounting an
-# attack on a prepopulated hash. This is also useful if you need normal
+# attack on a pre-populated hash. This is also useful if you need normal
# keys which don't contain \0 -- suitable for stashes
use constant MASK_U32 => 2**32;
@@ -42,12 +42,12 @@ use constant START => "a";
my %h2 = map {$_ => 1} 'a'..'cc';
ok (!Internals::HvREHASH(%h2),
- "starting with pre-populated non-pathalogical hash (rehash flag if off)");
+ "starting with pre-populated non-pathological hash (rehash flag if off)");
my @keys = get_keys(\%h2);
$h2{$_}++ for @keys;
ok (Internals::HvREHASH(%h2),
- scalar(@keys) . " colliding into the same bucket keys are triggerring rehash");
+ scalar(@keys) . " colliding into the same bucket keys are triggering rehash");
sub get_keys {
my $hr = shift;
@@ -97,7 +97,7 @@ sub hash {
for (@c) {
# (A % M) + (B % M) == (A + B) % M
# This works because '+' produces a NV, which is big enough to hold
- # the intermidiate result. We only need the % before any "^" and "&"
+ # the intermediate result. We only need the % before any "^" and "&"
# to get the result in the range for an I32.
# and << doesn't work on NV, so using 1 << 10
$u += ord;