mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-12 21:08:45 +00:00
Fix doc
This commit is contained in:
@@ -1 +1 @@
|
||||
1.69.0
|
||||
1.70.0
|
||||
|
||||
@@ -158,7 +158,7 @@ pub fn piglatin(input: String) -> String {
|
||||
///
|
||||
/// - The result is a map from department to the list of its employees.
|
||||
/// - An empty department should not appear in the result.
|
||||
/// - There are three commands: "Add <person> to <department>", "Remove <person> from <department>", and "Move <person> from <department> to <department>".
|
||||
/// - There are three commands: "Add {person} to {department}", "Remove {person} from {department}", and "Move {person} from {department} to {department}".
|
||||
/// - If a command is not executable, then it's ignored.
|
||||
/// - There is no space in the name of the person and department.
|
||||
///
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//! Syntax.
|
||||
|
||||
/// Command of the form "<expression>" or "<var> = <expression>".
|
||||
/// Command of the form "{expression}" or "{var} = {expression}".
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Command {
|
||||
/// Variable (lhs).
|
||||
|
||||
@@ -47,7 +47,7 @@ pub enum Node<T> {
|
||||
///
|
||||
/// For example, the result of preorder traversal for the following tree
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```text
|
||||
/// 1
|
||||
/// /|\
|
||||
/// 2 3 4
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
//! - Manager can leave the TV room earlier than guests.
|
||||
//! - The TV room closes when the last person left the TV room.
|
||||
//!
|
||||
//! Both `Manager` and `Guest` have 'Rc<Watcher>' as a field, and its reference count indicates the number of people in
|
||||
//! Both `Manager` and `Guest` have `Rc<Watcher>` as a field, and its reference count indicates the number of people in
|
||||
//! the TV room. When the 'Manager' and 'Guest' object is dropped, it means that the person leaves the TV room.
|
||||
//!
|
||||
//! Consult the following documentations:
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#![deny(variant_size_differences)]
|
||||
#![deny(warnings)]
|
||||
#![deny(rustdoc::invalid_html_tags)]
|
||||
#![deny(rustdoc::missing_doc_code_examples)]
|
||||
// #![deny(rustdoc::missing_doc_code_examples)]
|
||||
#![deny(missing_docs)]
|
||||
#![deny(rustdoc::all)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
Reference in New Issue
Block a user