Clean up library exports and docs

This commit is contained in:
Matthew Gordon 2025-11-10 21:05:43 -04:00
parent 47a5ccb575
commit 69d87ef680
3 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ use std::path::PathBuf;
use super::{CommandResponse, EditorBuffer};
use crate::{Point, TextBuffer, TextBufferReader, TextBufferWriter};
#[doc(hidden)]
impl EditorBuffer {
pub fn open_file(&mut self, filepath: PathBuf) -> CommandResponse {
match std::fs::File::open(&filepath) {

View File

@ -1,6 +1,6 @@
use std::path::PathBuf;
use crate::{Point, TextBuffer, TextBufferWriter};
use crate::{Point, TextBuffer};
mod io;
mod command;

View File

@ -1,4 +1,4 @@
mod text_buffer;
pub use text_buffer::{Point, TextBuffer, TextBufferReader, TextBufferWriter};
mod editor_buffer;
pub use editor_buffer::{Command, CommandResponse, EditorBuffer};
pub use editor_buffer::{Command, CommandResponse, EditorBuffer, Movement, Unit};