diff options
author | Myles Walcott <myles_walcott> | 2022-02-07 22:27:25 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2022-02-07 22:28:12 +0300 |
commit | 880e85fc80853334ddbe0a88ad8dd5730a66368a (patch) | |
tree | c725bc89c66228fb776126051d21e8f9d72e306c /doc/python_api/rst/info_best_practice.rst | |
parent | 65d287a14a4081fc30535a2c17f0e64819401564 (diff) |
Cleanup: Grammar in doc/python_api
* Its -> It's
* Scripts -> Script's
* then -> than
Several phrasing grammar fixes.
Reviewed By: Blendify
Differential Revision: https://developer.blender.org/D14021
Diffstat (limited to 'doc/python_api/rst/info_best_practice.rst')
-rw-r--r-- | doc/python_api/rst/info_best_practice.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/python_api/rst/info_best_practice.rst b/doc/python_api/rst/info_best_practice.rst index 2607d047997..e88adcc0d70 100644 --- a/doc/python_api/rst/info_best_practice.rst +++ b/doc/python_api/rst/info_best_practice.rst @@ -229,7 +229,7 @@ removing the last items first, which is faster (as explained above): This example shows a fast way of removing items, -for use in cases where you can alter the list order without breaking the scripts functionality. +for use in cases where you can alter the list order without breaking the script's functionality. This works by swapping two list items, so the item you remove is always last: .. code-block:: python @@ -278,7 +278,7 @@ Here are three ways of joining multiple strings into one string for writing. This also applies to any area of your code that involves a lot of string joining: String concatenation - This is the slowest option, do **not** use if you can avoid it, especially when writing data in a loop. + This is the slowest option, do **not** use this if you can avoid it, especially when writing data in a loop. >>> file.write(str1 + " " + str2 + " " + str3 + "\n") @@ -288,7 +288,7 @@ String formatting >>> file.write("%s %s %s\n" % (str1, str2, str3)) String joining - Use to join a list of strings (the list may be temporary). In the following example, the strings are joined with + Use this to join a list of strings (the list may be temporary). In the following example, the strings are joined with a space " " in between, other examples are "" or ", ". >>> file.write(" ".join((str1, str2, str3, "\n"))) |