fix doc-test

This commit is contained in:
Darren Schroeder 2021-10-05 12:58:48 -05:00
parent 51a43f5617
commit 7697f7bdce
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
//! needed. For example:
//!
//! ```rust
//! use super::grid::{Grid, GridOptions, Direction, Filling, Cell};
//! use nu_command::grid::{Grid, GridOptions, Direction, Filling, Cell};
//!
//! let mut grid = Grid::new(GridOptions {
//! filling: Filling::Spaces(1),
@ -521,7 +521,7 @@ impl fmt::Display for Display<'_> {
/// Pad a string with the given number of spaces.
fn spaces(length: usize) -> String {
repeat(" ").take(length).collect()
" ".repeat(length)
}
/// Pad a string with the given alignment and number of spaces.

View file

@ -1,4 +1,4 @@
mod grid;
pub mod grid;
mod griddle;
mod table;