Skip to content

Commit 3e265e7

Browse files
committed
Small documentation changes
I'm leaving the Sized kind undocumented since it isn't fully implemented yet.
1 parent 451c943 commit 3e265e7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

doc/rust.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,9 +2869,6 @@ The kinds are:
28692869
: Types of this kind can be safely sent between tasks.
28702870
This kind includes scalars, owning pointers, owned closures, and
28712871
structural types containing only other owned types. All `Send` types are `Static`.
2872-
`Static`
2873-
: Types of this kind do not contain any borrowed pointers;
2874-
this can be a useful guarantee for code that breaks borrowing assumptions using [`unsafe` operations](#unsafe-functions).
28752872
`Copy`
28762873
: This kind includes all types that can be copied. All types with
28772874
sendable kind are copyable, as are managed boxes, managed closures,

src/libstd/bool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ pub fn xor(a: bool, b: bool) -> bool { (a && !b) || (!a && b) }
122122
* ~~~ {.rust}
123123
* rusti> std::bool::implies(true, true)
124124
* true
125+
* ~~~
125126
*
126127
* ~~~ {.rust}
127128
* rusti> std::bool::implies(true, false)

src/libstd/kinds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ intrinsic properties of the type. These classifications, often called
1818
They cannot be implemented by user code, but are instead implemented
1919
by the compiler automatically for the types to which they apply.
2020
21-
The 4 kinds are
21+
The 3 kinds are
2222
2323
* Copy - types that may be copied without allocation. This includes
2424
scalar types and managed pointers, and exludes owned pointers. It

0 commit comments

Comments
 (0)