We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ead1159 commit fe6ddd5Copy full SHA for fe6ddd5
src/liballoc/boxed.rs
@@ -73,8 +73,12 @@
73
//!
74
//! ```c
75
//! /* C header */
76
-//! struct Foo* foo_new(void); /* Returns ownership to the caller */
77
-//! void foo_delete(struct Foo*); /* Takes ownership from the caller */
+//!
+//! /* Returns ownership to the caller */
78
+//! struct Foo* foo_new(void);
79
80
+//! /* Takes ownership from the caller; no-op when invoked with NULL */
81
+//! void foo_delete(struct Foo*);
82
//! ```
83
84
//! These two functions might be implemented in Rust as follows. Here, the
0 commit comments