From db1a600dd0e0d42e669793a8b3f080b5223c82aa Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 1 Oct 2024 11:16:32 -0700 Subject: [PATCH] Improve comment wording --- R/data.table.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/data.table.R b/R/data.table.R index 5916f035d..aaa0f92fd 100644 --- a/R/data.table.R +++ b/R/data.table.R @@ -2923,7 +2923,7 @@ setDT = function(x, keep.rownames=FALSE, key=NULL, check.names=FALSE) { } } - # setalloccol results in a shallow copy. Must be performed before class setting not to affect other copies of x (#4784) + # Done to avoid affecting other copies of x when we setattr() below (#4784) x = .shallow(x) rn = if (!identical(keep.rownames, FALSE)) rownames(x) else NULL