diff --git a/src/chYY-YY-public-api.md b/src/chYY-YY-public-api.md index 4b7228b58..b5261de47 100644 --- a/src/chYY-YY-public-api.md +++ b/src/chYY-YY-public-api.md @@ -11,7 +11,7 @@ organization, you can re-export items in the way you want them to be organized. To re-export a name, combine the `pub` keyword with `use`: ```rust -# fn main() {} # this doesn't work if it's inside main +# fn main() {} // this ex needs to be outside main mod a { pub mod namespace { pub fn function() {}