From 4e049d1e16db0d4bd69201e8d628f8a7852f4a75 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sat, 6 Nov 2021 03:28:15 -0400 Subject: [PATCH] docs(codestyle): `String() string` methods (#1965) --- .github/CODE_STYLE.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/CODE_STYLE.md b/.github/CODE_STYLE.md index 711858ed53..141e870f11 100644 --- a/.github/CODE_STYLE.md +++ b/.github/CODE_STYLE.md @@ -1,3 +1,8 @@ # Code style 🚧 work in progress! 🚧 + +## Add `String() string` methods + +Add `String() string` methods to new types, so they can easily be logged. +💁 You should try de-referencing pointer fields in your method, to avoid logging pointer addresses.