From d52b1d848e6e402971e9bd81e58f6d2553854372 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 27 Jun 2023 12:55:47 +0200 Subject: [PATCH] destructors: update, =destroy does not require a 'var T' (#22168) --- doc/destructors.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/destructors.md b/doc/destructors.md index 789cb93d6d510..12def00537f03 100644 --- a/doc/destructors.md +++ b/doc/destructors.md @@ -36,7 +36,7 @@ written as: len, cap: int data: ptr UncheckedArray[T] - proc `=destroy`*[T](x: var myseq[T]) = + proc `=destroy`*[T](x: myseq[T]) = if x.data != nil: for i in 0..