summaryrefslogtreecommitdiffstats
path: root/src/doc/rust-by-example/src/mod/struct_visibility.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rust-by-example/src/mod/struct_visibility.md')
-rw-r--r--src/doc/rust-by-example/src/mod/struct_visibility.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/doc/rust-by-example/src/mod/struct_visibility.md b/src/doc/rust-by-example/src/mod/struct_visibility.md
index e7359413c..8641a7264 100644
--- a/src/doc/rust-by-example/src/mod/struct_visibility.md
+++ b/src/doc/rust-by-example/src/mod/struct_visibility.md
@@ -13,7 +13,6 @@ mod my {
}
// A public struct with a private field of generic type `T`
- #[allow(dead_code)]
pub struct ClosedBox<T> {
contents: T,
}
@@ -56,4 +55,4 @@ fn main() {
[generics][generics] and [methods][methods]
[generics]: ../generics.md
-[methods]: ../fn/methods.md \ No newline at end of file
+[methods]: ../fn/methods.md