Skip to content

Commit

Permalink
fix(example): pub declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed Dec 31, 2024
1 parent c7308cd commit 4bd69c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions legacy/examples/path/lib/path.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub struct Path {
pub(all) struct Path {
mut inner : String
platform : Platform
file_type : FileType
}

pub enum FileType {
pub(all) enum FileType {
File
Directory
Symlink
Unknown
}

pub enum Platform {
pub(all) enum Platform {
Posix
Windows
}
Expand Down Expand Up @@ -113,6 +113,6 @@ pub fn to_string(self : Path) -> String {
self.inner
}

pub fn output(self : Path, log : Logger) -> Unit {
(self.inner as Show).output(log)
pub fn output(self : Path, log : &Logger) -> Unit {
self.inner.output(log)
}

0 comments on commit 4bd69c7

Please sign in to comment.