about summary refs log tree commit diff
path: root/src/docs/large_stack_arrays.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/large_stack_arrays.txt')
-rw-r--r--src/docs/large_stack_arrays.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/docs/large_stack_arrays.txt b/src/docs/large_stack_arrays.txt
new file mode 100644
index 00000000000..4a6f34785b0
--- /dev/null
+++ b/src/docs/large_stack_arrays.txt
@@ -0,0 +1,10 @@
+### What it does
+Checks for local arrays that may be too large.
+
+### Why is this bad?
+Large local arrays may cause stack overflow.
+
+### Example
+```
+let a = [0u32; 1_000_000];
+```
\ No newline at end of file