From bb6d1749c446108b77a8e8ba4cd8b28c9c95c5a2 Mon Sep 17 00:00:00 2001 From: Carl Fredrik Samson Date: Sat, 25 Jan 2020 20:28:57 +0100 Subject: [PATCH] added build status to readme --- src/0_1_background_information.md | 2 +- src/0_2_naive_implementation.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/0_1_background_information.md b/src/0_1_background_information.md index 9d8c6cd..f2c4fda 100644 --- a/src/0_1_background_information.md +++ b/src/0_1_background_information.md @@ -82,7 +82,7 @@ dynamic dispatch. Let's explain this in code instead of words by implementing our own trait object from these parts: -```rust, editable +```rust // A reference to a trait object is a fat pointer: (data_ptr, vtable_ptr) trait Test { fn add(&self) -> i32; diff --git a/src/0_2_naive_implementation.md b/src/0_2_naive_implementation.md index 4c9a050..80a7a0e 100644 --- a/src/0_2_naive_implementation.md +++ b/src/0_2_naive_implementation.md @@ -133,7 +133,7 @@ impl Drop for Reactor { } ``` -```rust, editable +```rust,editable use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::mpsc::{channel, Sender}; use std::sync::{Arc, Mutex};