Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorT. Carl Beery <beeryt@users.noreply.github.com>2019-09-10 18:52:20 +0300
committerGitHub <noreply@github.com>2019-09-10 18:52:20 +0300
commit4e2c380f3233c52672b348d523a16db5ac0de825 (patch)
treef1351d74395de12e42fd2c335c67d7c40d91c59a /docs
parent7cbb39c374d63f9bf08ced6a9edda61e76396068 (diff)
Update concepts.rst: fix typo
Diffstat (limited to 'docs')
-rw-r--r--docs/concepts.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/concepts.rst b/docs/concepts.rst
index 168e564..34efcc9 100644
--- a/docs/concepts.rst
+++ b/docs/concepts.rst
@@ -308,13 +308,13 @@ Nanopb will generate ``payload`` as a C union and add an additional field ``whic
} MyMessage;
``which_payload`` indicates which of the ``oneof`` fields is actually set.
-The user is expected to set the filed manually using the correct field tag::
+The user is expected to set the field manually using the correct field tag::
MyMessage msg = MyMessage_init_zero;
msg.payload.msg2.value = true;
msg.which_payload = MyMessage_msg2_tag;
-Notice that neither ``which_payload`` field nor the unused fileds in ``payload``
+Notice that neither ``which_payload`` field nor the unused fields in ``payload``
will consume any space in the resulting encoded message.
When a C union is used to represent a ``oneof`` section, the union cannot have