mirror of
https://github.com/nushell/nushell
synced 2024-12-28 05:53:09 +00:00
fix doc-test
This commit is contained in:
parent
51a43f5617
commit
7697f7bdce
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
mod grid;
|
||||
pub mod grid;
|
||||
mod griddle;
|
||||
mod table;
|
||||
|
||||
|
|
Loading…
Reference in a new issue