From 75e38a8cda8fc4b0f1bed58299934b91b983b180 Mon Sep 17 00:00:00 2001 From: bistcuite <85484922+bistcuite@users.noreply.github.com> Date: Mon, 20 Jun 2022 18:21:33 +0430 Subject: [PATCH] Update CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f433f78d5d..ca25453a0a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -108,7 +108,7 @@ are often overkill for nested functions and function literals; use ordinary comments for those. Follow the [D Style](https://dlang.org/dstyle.html#phobos_documentation) for comment blocks. -3. Do not use `strlen`/`strcmp` and their ilk. Use D arrays instead. +3. Do not use `strlen`/`strcmp` and their like. Use D arrays instead. If slicing from a `char*` is required then use `dmd.utils.toDString` or the member function `.toString` that is implemented in many classes.