summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/OCamlLangImpl6.rst
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-06-14 16:05:12 +0000
committerHans Wennborg <hans@hanshq.net>2016-06-14 16:05:12 +0000
commit1d8b31b6d206be0b8e2dfa24fa965e71e1512ac1 (patch)
tree0f6a4e67053e316856981f69452619f42a39a3ac /llvm/docs/tutorial/OCamlLangImpl6.rst
parentaf914fa2dbcd817e326e7937ed50963bd13c5f94 (diff)
downloadbcm5719-llvm-1d8b31b6d206be0b8e2dfa24fa965e71e1512ac1.tar.gz
bcm5719-llvm-1d8b31b6d206be0b8e2dfa24fa965e71e1512ac1.zip
Fix some typos in the Kaleidoscope tutorial (PR28120)
llvm-svn: 272681
Diffstat (limited to 'llvm/docs/tutorial/OCamlLangImpl6.rst')
-rw-r--r--llvm/docs/tutorial/OCamlLangImpl6.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/docs/tutorial/OCamlLangImpl6.rst b/llvm/docs/tutorial/OCamlLangImpl6.rst
index a3ae11fd7e5..2fa25f5c22f 100644
--- a/llvm/docs/tutorial/OCamlLangImpl6.rst
+++ b/llvm/docs/tutorial/OCamlLangImpl6.rst
@@ -496,17 +496,17 @@ converge:
# determine whether the specific location diverges.
# Solve for z = z^2 + c in the complex plane.
- def mandleconverger(real imag iters creal cimag)
+ def mandelconverger(real imag iters creal cimag)
if iters > 255 | (real*real + imag*imag > 4) then
iters
else
- mandleconverger(real*real - imag*imag + creal,
+ mandelconverger(real*real - imag*imag + creal,
2*real*imag + cimag,
iters+1, creal, cimag);
# return the number of iterations required for the iteration to escape
- def mandleconverge(real imag)
- mandleconverger(real, imag, 0, real, imag);
+ def mandelconverge(real imag)
+ mandelconverger(real, imag, 0, real, imag);
This "z = z\ :sup:`2`\ + c" function is a beautiful little creature
that is the basis for computation of the `Mandelbrot
@@ -520,12 +520,12 @@ but we can whip together something using the density plotter above:
::
- # compute and plot the mandlebrot set with the specified 2 dimensional range
+ # compute and plot the mandelbrot set with the specified 2 dimensional range
# info.
def mandelhelp(xmin xmax xstep ymin ymax ystep)
for y = ymin, y < ymax, ystep in (
(for x = xmin, x < xmax, xstep in
- printdensity(mandleconverge(x,y)))
+ printdensity(mandelconverge(x,y)))
: putchard(10)
)
@@ -535,7 +535,7 @@ but we can whip together something using the density plotter above:
mandelhelp(realstart, realstart+realmag*78, realmag,
imagstart, imagstart+imagmag*40, imagmag);
-Given this, we can try plotting out the mandlebrot set! Lets try it out:
+Given this, we can try plotting out the mandelbrot set! Lets try it out:
::
OpenPOWER on IntegriCloud