From 4930e5d74d07de904e8f9ba0d93bf9452f6db86d Mon Sep 17 00:00:00 2001 From: Gunnlaugur Thor Briem Date: Sun, 1 Aug 2021 14:37:16 +0000 Subject: [PATCH] =?UTF-8?q?Link=20=E2=80=9CDST=E2=80=9D=20to=20its=20defin?= =?UTF-8?q?ition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Being new to Rust I wasn't familiar with this acronym and found it hard to guess (the context of syntax trees biased me to reading it as a D-something Syntax Tree and trying to guess what the D was), hard to google (in retrospect googling "rust dst" does the job, but I thought it was an abstract structure thing, not Rust-specific), and hard to Github-search, because `dst` is commonly short for “destination” in code. Alternatively `DST` would be about as helpful. --- docs/dev/syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev/syntax.md b/docs/dev/syntax.md index 5a065e00ef..4f45aa321b 100644 --- a/docs/dev/syntax.md +++ b/docs/dev/syntax.md @@ -110,7 +110,7 @@ FN@0..17 (significant amount of implementation work here was done by [CAD97](https://github.com/cad97)). -To reduce the amount of allocations, the GreenNode is a DST, which uses a single allocation for header and children. Thus, it is only usable behind a pointer +To reduce the amount of allocations, the GreenNode is a [DST](https://doc.rust-lang.org/reference/dynamically-sized-types.html), which uses a single allocation for header and children. Thus, it is only usable behind a pointer. ``` *-----------+------+----------+------------+--------+--------+-----+--------*