From 12cc40a56f27f8b93cb9f41ae7f778caa96f5a60 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Thu, 28 Jan 2021 17:13:35 -0800 Subject: [PATCH] Corrected no_children() example. --- common.scad | 5 ++++- version.scad | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common.scad b/common.scad index b02b240..d47f3a3 100644 --- a/common.scad +++ b/common.scad @@ -549,7 +549,10 @@ function segs(r) = // Arguments: // $children = number of children the module has. // Example: -// no_children($children); +// module foo() { +// no_children($children); +// } +// foo(); module no_children(count) { assert($children==0, "Module no_children() does not support child modules"); assert(count==0, str("Module ",parent_module(1),"() does not support child modules")); diff --git a/version.scad b/version.scad index 41e6841..3c31e41 100644 --- a/version.scad +++ b/version.scad @@ -6,7 +6,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,546]; +BOSL_VERSION = [2,0,547]; // Section: BOSL Library Version Functions