summary refs log tree commit diff
path: root/src/libstd/bool.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-18 19:13:32 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-18 19:13:32 -0800
commit1b42e890bf99d37a9e6447912c75c5b5e4695c4e (patch)
tree38451358ee53751e437f0bbb9ca29ab17558dc81 /src/libstd/bool.rs
parentf9a48492a82f805aa40d8b6fea290badbab0d1b1 (diff)
std: Remove public bool,tuple,unit modules
This commit modifies rustdoc to not require these empty modules to be public in
the standard library. The modules still remain as a location to attach
documentation to, but the modules themselves are now private (don't have to
commit to an API). The documentation for the standard library now shows all of
the primitive types on the main index page.
Diffstat (limited to 'src/libstd/bool.rs')
-rw-r--r--src/libstd/bool.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libstd/bool.rs b/src/libstd/bool.rs
new file mode 100644
index 00000000000..bbaab5ee3db
--- /dev/null
+++ b/src/libstd/bool.rs
@@ -0,0 +1,15 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+//! The boolean type
+
+#![doc(primitive = "bool")]
+#![stable]
+