Skip to content

Commit 37fc03e

Browse files
committed
glib: Remove nonsense comments about glib::Slice pointers being NULL-terminated
1 parent 275acae commit 37fc03e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

glib/src/collections/slice.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,6 @@ impl<T: TransparentType> Slice<T> {
546546

547547
// rustdoc-stripper-ignore-next
548548
/// Returns the underlying pointer.
549-
///
550-
/// This is guaranteed to be `NULL`-terminated.
551549
#[inline]
552550
pub fn as_ptr(&self) -> *const T::GlibType {
553551
if self.len == 0 {
@@ -559,8 +557,6 @@ impl<T: TransparentType> Slice<T> {
559557

560558
// rustdoc-stripper-ignore-next
561559
/// Returns the underlying pointer.
562-
///
563-
/// This is guaranteed to be `NULL`-terminated.
564560
#[inline]
565561
pub fn as_mut_ptr(&mut self) -> *mut T::GlibType {
566562
if self.len == 0 {
@@ -572,8 +568,6 @@ impl<T: TransparentType> Slice<T> {
572568

573569
// rustdoc-stripper-ignore-next
574570
/// Consumes the slice and returns the underlying pointer.
575-
///
576-
/// This is guaranteed to be `NULL`-terminated.
577571
#[inline]
578572
pub fn into_raw(mut self) -> *mut T::GlibType {
579573
if self.len == 0 {

0 commit comments

Comments
 (0)