Skip to content

Commit d14d76a

Browse files
authored
docs: Fix small typo in modules guide (#5706)
A line from the hidden main function in an example was missing its escape character, so the example rendered as invalid code.
1 parent 0c1d54e commit d14d76a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn func() -> String {
104104
#
105105
# py.run(c"assert parent_module.child_module.func() == 'func'", None, Some(&ctx)).unwrap();
106106
# })
107-
}
107+
# }
108108
```
109109

110110
Note that this does not define a package, so this won’t allow Python code to directly import submodules by using `from parent_module import child_module`.

0 commit comments

Comments
 (0)