Skip to content

Commit 3f36f40

Browse files
authored
Fix small typos and grammar in documentation/style-guide.rst (#1884)
1 parent a318fba commit 3f36f40

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

documentation/style-guide.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ free-threaded
122122
open source
123123
Follow the usual English rules for compound words. When used as an
124124
adjective, hyphenate: "open-source software". When used as a noun, don't use
125-
a hyphen: "open source is a collaboration model.."
125+
a hyphen: "open source is a collaboration model."
126126

127127
POSIX
128128
The name assigned to a particular group of standards. This is always
@@ -168,7 +168,7 @@ as a type.
168168

169169
Many types have descriptive names which may or may not exactly match their type
170170
name. For example, "context variables" describes ``contextvars.ContextVar``,
171-
and both "dict" and "dictonary" are used to describe ``dict``. Once it is clear
171+
and both "dict" and "dictionary" are used to describe ``dict``. Once it is clear
172172
that the text refers to a specific type, use the naming which suits the context:
173173
in the case of ``dict``, any of "dict", "dictionary", or "``:class:`dict```" may
174174
be best.
@@ -274,7 +274,7 @@ Bad example (creating worry in the mind of a reader):
274274
Good example (establishing confident knowledge in the effective use of the
275275
language):
276276

277-
A best practice for using files is use a try/finally pair to explicitly
277+
A best practice for using files is to use a try/finally pair to explicitly
278278
close a file after it is used. Alternatively, using a with-statement can
279279
achieve the same effect. This assures that files are flushed and file
280280
descriptor resources are released in a timely manner.
@@ -378,7 +378,7 @@ model to alternative implementations and because the operation of the "grouper"
378378
is more easily shown in code than in English prose.
379379

380380
An example of when not to use a code equivalent is for the :func:`oct` function.
381-
The exact steps in converting a number to octal doesn't add value for a user
381+
The exact steps in converting a number to octal don't add value for a user
382382
trying to learn what the function does.
383383

384384

@@ -393,7 +393,7 @@ your best to connect-the-dots, but don't talk down to them or waste their time.
393393
The tutorial is meant for newcomers, many of whom will be using the tutorial to
394394
evaluate the language as a whole. The experience needs to be positive and not
395395
leave the reader with worries that something bad will happen if they make a
396-
misstep. The tutorial serves as guide for intelligent and curious readers,
396+
misstep. The tutorial serves as a guide for intelligent and curious readers,
397397
saving details for the how-to guides and other sources.
398398

399399
Be careful accepting requests for documentation changes from the rare but vocal

0 commit comments

Comments
 (0)