Skip to content

Commit

Permalink
Move books to src/
Browse files Browse the repository at this point in the history
  • Loading branch information
XuShaohua committed Apr 21, 2024
1 parent 576d125 commit 6c17e78
Show file tree
Hide file tree
Showing 50 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/book_out
/book
/dataset
/target
/Cargo.lock
4 changes: 2 additions & 2 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
title = "数据结构与算法 Rust 语言实现"
description = ""
authors = ["Shaohua <[email protected]>"]
src = "book"
src = "src"
language = "zh-CN"

[rust]
edition = "2021"

[build]
build-dir = "book_out"
build-dir = "book"
create-missing = false

[output.html]
Expand Down
2 changes: 1 addition & 1 deletion sorts/src/selection_sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn selection_sort<T>(list: &mut [T])
where
T: PartialOrd,
{
if list.is_empty() {
if list.len() < 2 {
return;
}
let len = list.len();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6c17e78

Please sign in to comment.