From 911b16f1e4d0ad10e1c54cae61a4fd37fd3f77e7 Mon Sep 17 00:00:00 2001 From: Ding Xiang Fei Date: Mon, 2 Dec 2024 23:07:28 +0800 Subject: [PATCH] apply suggestions --- src/const_eval.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/const_eval.md b/src/const_eval.md index f668c0ff8..6f8254bc5 100644 --- a/src/const_eval.md +++ b/src/const_eval.md @@ -46,8 +46,8 @@ r[const-eval.const-expr.path-static] * Writes to `static` items are not allowed in any constant evaluation context. * Reads from `extern` statics are not allowed in any constant evaluation context. * If the evaluation is *not* carried out in an initializer of a `static` item, - then reads from any mutable `static` are not allowed. - By mutable `static` it includes `static mut`s and `static`s containing an interior-mutable type. + then reads from any mutable `static` are not allowed. + A mutable `static` is a `static mut` item, or a `static` item with an interior-mutable type. r[const-eval.const-expr.tuple] * [Tuple expressions].