Skip to content

Commit 44f5d96

Browse files
committed
Change PublicallyExported -> PubliclyExported
1 parent 2469784 commit 44f5d96

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

book/src/lint_configuration.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -808,10 +808,10 @@ Whether to also run the listed lints on private items.
808808

809809

810810
## `pub-underscore-fields-behavior`
811-
Meow "public" fields in a struct that are prefixed with an underscore based on their
811+
Lint "public" fields in a struct that are prefixed with an underscore based on their
812812
exported visibility, or whether they are marked as "pub".
813813

814-
**Default Value:** `"PublicallyExported"`
814+
**Default Value:** `"PubliclyExported"`
815815

816816
---
817817
**Affected lints:**

clippy_config/src/conf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ define_Conf! {
551551
///
552552
/// Lint "public" fields in a struct that are prefixed with an underscore based on their
553553
/// exported visibility, or whether they are marked as "pub".
554-
(pub_underscore_fields_behavior: PubUnderscoreFieldsBehaviour = PubUnderscoreFieldsBehaviour::PublicallyExported),
554+
(pub_underscore_fields_behavior: PubUnderscoreFieldsBehaviour = PubUnderscoreFieldsBehaviour::PubliclyExported),
555555
}
556556

557557
/// Search for the configuration file.

clippy_config/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ unimplemented_serialize! {
129129

130130
#[derive(Clone, Copy, Debug, PartialEq, Eq, Deserialize, Serialize)]
131131
pub enum PubUnderscoreFieldsBehaviour {
132-
PublicallyExported,
132+
PubliclyExported,
133133
AllPubFields,
134134
}

clippy_lints/src/pub_underscore_fields.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<'tcx> LateLintPass<'tcx> for PubUnderscoreFields {
5454
};
5555

5656
let is_visible = |field: &FieldDef<'_>| match self.behavior {
57-
PubUnderscoreFieldsBehaviour::PublicallyExported => cx.effective_visibilities.is_reachable(field.def_id),
57+
PubUnderscoreFieldsBehaviour::PubliclyExported => cx.effective_visibilities.is_reachable(field.def_id),
5858
PubUnderscoreFieldsBehaviour::AllPubFields => {
5959
// If there is a visibility span then the field is marked pub in some way.
6060
!field.vis_span.is_empty()
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pub-underscore-fields-behavior = "PublicallyExported"
1+
pub-underscore-fields-behavior = "PubliclyExported"

0 commit comments

Comments
 (0)