summaryrefslogtreecommitdiff
path: root/rust/alloc/vec/set_len_on_drop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/alloc/vec/set_len_on_drop.rs')
-rw-r--r--rust/alloc/vec/set_len_on_drop.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/alloc/vec/set_len_on_drop.rs b/rust/alloc/vec/set_len_on_drop.rs
index 8b66bc812129..448bf5076a0b 100644
--- a/rust/alloc/vec/set_len_on_drop.rs
+++ b/rust/alloc/vec/set_len_on_drop.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
// Set the length of the vec when the `SetLenOnDrop` value goes out of scope.
//
// The idea is: The length field in SetLenOnDrop is a local variable