Skip to content

Commit 3839497

Browse files
committed
Fixing variable naming
1 parent 7c69d60 commit 3839497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zipfian_int_distribution.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ class zipfian_int_distribution
127127
double zeta(unsigned long __n, double __theta)
128128
{
129129
double ans = 0.0;
130-
for(unsigned long i=1; i<=n; ++i)
131-
ans += std::pow(1.0/i, theta);
130+
for(unsigned long i=1; i<=__n; ++i)
131+
ans += std::pow(1.0/i, __theta);
132132
return ans;
133133
}
134134
};

0 commit comments

Comments
 (0)