mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix doc comment for Interpreter
This commit is contained in:
@@ -1956,10 +1956,6 @@ impl<'vm> Drop for ReprGuard<'vm> {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Interpreter {
|
||||
vm: VirtualMachine,
|
||||
}
|
||||
|
||||
/// The general interface for the VM
|
||||
///
|
||||
/// # Examples
|
||||
@@ -1976,6 +1972,10 @@ pub struct Interpreter {
|
||||
/// vm.run_code_obj(code_obj, scope).unwrap();
|
||||
/// });
|
||||
/// ```
|
||||
pub struct Interpreter {
|
||||
vm: VirtualMachine,
|
||||
}
|
||||
|
||||
impl Interpreter {
|
||||
pub fn new(settings: PySettings, init: InitParameter) -> Self {
|
||||
Self::new_with_init(settings, |_| init)
|
||||
|
||||
Reference in New Issue
Block a user