From 2bc638b08612e92468401fce5e220480fb3d4e71 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 14 Jan 2020 13:22:30 -0500 Subject: [PATCH] Improve examples for function naming --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index efdfcda..4fccae0 100644 --- a/README.md +++ b/README.md @@ -698,8 +698,8 @@ $NAMESPACE_$NOUN_$VERB(...); For example: ``` -example_run(...); -example_foobar_update(...); +void example_run(...); +void example_foobar_update(...); ``` Programmers **SHOULD omit the namespace for static functions.** @@ -707,8 +707,8 @@ Programmers **SHOULD omit the namespace for static functions.** However, the ordering of noun/verb is more subjective: ``` -process_events(...); -foobar_from_foobaz(...); +static void process_events(...); +static struct foobar *foobar_from_foobaz(...); ``` Programmers **MUST use the verbs create and destroy for heap objects:** -- 2.45.2