Skip to content

Commit c1ea08f

Browse files
committed
removed 'we'
1 parent b5efb5e commit c1ea08f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/contributor/pages/code-style-guide.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,20 +425,20 @@ enum Error {
425425
==== Examples for "failed to ..." error messages
426426

427427
. `failed to parse config file` to indicate the parsing of the config file failed, usually because the file doesn't conform to the configuration language.
428-
. `failed to construct http client` to indicate we wanted to construct a HTTP client to retrieve remote content.
428+
. `failed to construct http client` to indicate that the construction of a HTTP client to retrieve remote content failed.
429429

430430
==== Exampled for "unable to ..." error messages
431431

432-
. `unable to read config file from ...` to indicate we could load the file (for example because the file doesn't exist).
433-
. `unable to parse value ...` to indicate we failed to parse a user provided value which didn't conform to the expected syntax.
432+
. `unable to read config file from ...` to indicate that the file could not be loaded (for example because the file doesn't exist).
433+
. `unable to parse value ...` to indicate that parsing a user provided value failed (for example because it didn't conform to the expected syntax).
434434

435435
== String formatting
436436

437437
=== Named versus unnamed format string identifiers
438438

439-
For simple string formatting (up to two substitutions), we allow unnamed (and thus also uncaptured) identifiers.
439+
For simple string formatting (up to two substitutions), unnamed (and thus also uncaptured) identifiers are allowed.
440440

441-
For more complex formatting (more than two substitutions), we require named identifiers to avoid ambiguity, and to decouple argument order from the text (which can lead to incorrect text when the wording is changed and `{}` are reordered while the arguments aren't).
441+
For more complex formatting (more than two substitutions), named identifiers are required to avoid ambiguity, and to decouple argument order from the text (which can lead to incorrect text when the wording is changed and `{}` are reordered while the arguments aren't).
442442
This rule needs to strike a balance between explicitness and concise `format!()` invocations.
443443
Long `format!()` expressions can lead to rustfmt breakage.
444444
It might be better to split up long formatting strings into multiple smaller ones.
@@ -488,7 +488,7 @@ format!(
488488

489489
=== Captured versus uncaptured format string identifiers
490490

491-
We place no restriction on named format string identifiers.
491+
There are no restrictions on named format string identifiers.
492492
All options below are considered valid.
493493

494494
[source,rust]
@@ -504,7 +504,7 @@ format!("Hello {name}, hello again {name}", name = greetee);
504504

505505
== Specifying resources measured in bytes and CPU fractions
506506

507-
We follow the Kubernetes convention described https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[here].
507+
Follow the Kubernetes convention described https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[here].
508508

509509
=== Resources measured in bytes
510510

0 commit comments

Comments
 (0)