From 07dfe3f3f4b3da132e8c4d203570c56f6a851268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Besan=C3=A7on?= Date: Tue, 20 Aug 2019 11:28:17 +0200 Subject: [PATCH] minor doc changes --- base/expr.jl | 3 ++- base/math.jl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/base/expr.jl b/base/expr.jl index c6a02e4571692..7e57c2282b549 100644 --- a/base/expr.jl +++ b/base/expr.jl @@ -196,7 +196,7 @@ end """ @noinline -Prevents the compiler from inlining a function. +Prevent the compiler from inlining a function. Small functions are typically inlined automatically. By using `@noinline` on small functions, auto-inlining can be @@ -227,6 +227,7 @@ generic functions. Calls to generic functions depend on method tables which are mutable global state. Use with caution, incorrect `@pure` annotation of a function may introduce hard to identify bugs. Double check for calls to generic functions. +This macro is intended for internal compiler use and may be subject to changes. """ macro pure(ex) esc(isa(ex, Expr) ? pushmeta!(ex, :pure) : ex) diff --git a/base/math.jl b/base/math.jl index ad1e898bf3a94..a6db1a62d3409 100644 --- a/base/math.jl +++ b/base/math.jl @@ -90,7 +90,8 @@ end """ @horner(x, p...) - Evaluate p[1] + x * (p[2] + x * (....)), i.e. a polynomial via Horner's rule + +Evaluate `p[1] + x * (p[2] + x * (....))`, i.e. a polynomial via Horner's rule. """ macro horner(x, p...) ex = esc(p[end])