From 594e8aa28d146c755551a61c3f68ba7ad430329d Mon Sep 17 00:00:00 2001
From: Lars Kappert
Like with assignments, type annotations are optional for function arguments - and return values. It's considered good practice to use type annotations for + and return values. It is considered good practice to use type annotations for functions, for clarity and to encourage intentional and thoughtful design.
diff --git a/src/content/chapter1_functions/lesson07_pipelines/en.html b/src/content/chapter1_functions/lesson07_pipelines/en.html index 783ade9..291f36e 100644 --- a/src/content/chapter1_functions/lesson07_pipelines/en.html +++ b/src/content/chapter1_functions/lesson07_pipelines/en.html @@ -1,5 +1,5 @@- It's common to want to call a series of functions, passing the result of one + It is common to want to call a series of functions, passing the result of one to the next. With the regular function call syntax this can be a little difficult to read as you have to read the code from the inside out.
diff --git a/src/content/chapter1_functions/lesson08_labelled_arguments/en.html b/src/content/chapter1_functions/lesson08_labelled_arguments/en.html index 869a041..b1d771c 100644 --- a/src/content/chapter1_functions/lesson08_labelled_arguments/en.html +++ b/src/content/chapter1_functions/lesson08_labelled_arguments/en.html @@ -16,7 +16,7 @@ a dictionary or perform any other runtime work.- Labels are optional when calling a function, it's up to the programmer to + Labels are optional when calling a function, it is up to the programmer to decide what is clearest in their code.
diff --git a/src/content/chapter1_functions/lesson09_documentation_comments/en.html b/src/content/chapter1_functions/lesson09_documentation_comments/en.html index b20307e..c27bac6 100644 --- a/src/content/chapter1_functions/lesson09_documentation_comments/en.html +++ b/src/content/chapter1_functions/lesson09_documentation_comments/en.html @@ -8,7 +8,7 @@
///
is used for documenting types and functions, and should be
- placed immediately before the type or function it's documenting.
+ placed immediately before the type or function it is documenting.
////
is used for documenting modules, and should be placed
--
cgit v1.2.3