Skip to content

Commit 6eb5a37

Browse files
committed
Oops, added missing ///s.
1 parent ecf3454 commit 6eb5a37

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/libcore/marker.rs

+21-21
Original file line numberDiff line numberDiff line change
@@ -358,27 +358,27 @@ pub trait PhantomFn<A:?Sized,R:?Sized=()> { }
358358
/// the method implementations, although the struct doesn't actually
359359
/// contain values of the resource type.
360360
///
361-
```
362-
struct ExternalResource<R> {
363-
resource_handle: *mut (),
364-
resource_type: PhantomData<R>,
365-
}
366-
367-
impl<R: ResType> ExternalResource<R> {
368-
fn new() -> ExternalResource<R> {
369-
let size_of_res = mem::size_of::<R>();
370-
ExternalResource {
371-
resource_handle: foreign_lib::new(size_of_res),
372-
resource_type: PhantomData,
373-
}
374-
}
375-
376-
fn do_stuff(&self, param: ParamType) {
377-
let foreign_params = convert_params::<R>(param);
378-
foreign_lib::do_stuff(self.resource_handle, foreign_params);
379-
}
380-
}
381-
```
361+
///```
362+
///struct ExternalResource<R> {
363+
/// resource_handle: *mut (),
364+
/// resource_type: PhantomData<R>,
365+
///}
366+
///
367+
///impl<R: ResType> ExternalResource<R> {
368+
/// fn new() -> ExternalResource<R> {
369+
/// let size_of_res = mem::size_of::<R>();
370+
/// ExternalResource {
371+
/// resource_handle: foreign_lib::new(size_of_res),
372+
/// resource_type: PhantomData,
373+
/// }
374+
/// }
375+
///
376+
/// fn do_stuff(&self, param: ParamType) {
377+
/// let foreign_params = convert_params::<R>(param);
378+
/// foreign_lib::do_stuff(self.resource_handle, foreign_params);
379+
/// }
380+
///}
381+
///```
382382
///
383383
/// Another example: embedding a `PhantomData<T>` will inform the compiler
384384
/// that one or more instances of the type `T` could be dropped when

0 commit comments

Comments
 (0)