Updated visibility
This commit is contained in:
@@ -20,7 +20,7 @@ public struct Task {
|
||||
|
||||
## Visibility
|
||||
|
||||
Use the `public` modifier to make the struct or its individual fields accessible from other modules.
|
||||
Use the `pub` modifier to make the struct or its individual fields accessible from other modules.
|
||||
|
||||
```mist
|
||||
public struct NetworkNode {
|
||||
@@ -57,4 +57,4 @@ public struct Buffer<'a, T> {
|
||||
- **Type-First Declaration**: Fields use the `type name` order to match function parameters and variable declarations.
|
||||
- **Comma-Separated Members**: Fields are separated by commas, maintaining a clean and consistent delimiter style.
|
||||
- **Rust Compatibility**: Maps 1:1 to Rust structs, ensuring zero-cost abstraction and full ecosystem interoperability.
|
||||
- **Direct Visibility**: The `public` keyword replaces `pub` for a more consistent modifier language across the codebase.
|
||||
- **Direct Visibility**: The `pub` keyword replaces `pub` for a more consistent modifier language across the codebase.
|
||||
|
||||
Reference in New Issue
Block a user