Use //! for script docs.

This commit is contained in:
Stephen Chung
2022-07-24 23:03:35 +08:00
parent e8d6e3f57d
commit 45acb65f4f
28 changed files with 30 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
// Implementation of the Event Handler With State Pattern - JS Style
//! Implementation of the Event Handler With State Pattern - JS Style
/// Initialize user-provided state.
fn init() {

View File

@@ -1,4 +1,4 @@
// Implementation of the Event Handler With State Pattern - Main Style
//! Implementation of the Event Handler With State Pattern - Main Style
/// Initialize user-provided state (shadows system-provided state, if any).
fn init() {

View File

@@ -1,4 +1,4 @@
// Implementation of the Event Handler With State Pattern - Map Style
//! Implementation of the Event Handler With State Pattern - Map Style
/// Initialize user-provided state.
/// State is stored inside an object map bound to 'state'.