From 7e2a09e81e90a108e872a87f0b9be2d08a557383 Mon Sep 17 00:00:00 2001 From: Sander Spies Date: Thu, 2 Apr 2020 12:29:32 +0200 Subject: [PATCH] Improve inline attribute description. --- gitlab-pages/docs/advanced/inline.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gitlab-pages/docs/advanced/inline.md b/gitlab-pages/docs/advanced/inline.md index ca61468b5..26e2a8951 100644 --- a/gitlab-pages/docs/advanced/inline.md +++ b/gitlab-pages/docs/advanced/inline.md @@ -5,13 +5,15 @@ title: Inlining import Syntax from '@theme/Syntax'; -When compiling a contract in LIGO some functions get inlined in the place where -they are used and some are not. Inlining a function often results in larger -contracts and is therefore not aggressively done. +When compiling a contract in LIGO, declarations will get inlined if they are +only used once and pure. Inlining often results in larger contracts and is +therefore not aggressively done. + +A pure declaration is one that doesn't cause side effects like causing a +failure or operation. In some cases you might want to override the default behaviour of LIGO and -force inlining. - +force inlining. The declaration still needs to be pure though. ## Inline attribute