Updated visibility

This commit is contained in:
2026-05-14 01:19:42 +02:00
parent e7d5d9a77b
commit 86f14d8f81
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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.