mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Extend the documentation of g_sequence_get_length()
The return value of g_sequence_get_length() is always a positive number.
This commit is contained in:
parent
89729bcd28
commit
4c1b068657
@ -1255,9 +1255,9 @@ g_sequence_set (GSequenceIter *iter,
|
|||||||
* g_sequence_get_length:
|
* g_sequence_get_length:
|
||||||
* @seq: a #GSequence
|
* @seq: a #GSequence
|
||||||
*
|
*
|
||||||
* Returns the length of @seq. Note that this method is O(h) where `h' is the
|
* Returns the positive length (>= 0) of @seq. Note that this method is
|
||||||
* height of the tree. It is thus more efficient to use g_sequence_is_empty()
|
* O(h) where `h' is the height of the tree. It is thus more efficient
|
||||||
* when comparing the length to zero.
|
* to use g_sequence_is_empty() when comparing the length to zero.
|
||||||
*
|
*
|
||||||
* Returns: the length of @seq
|
* Returns: the length of @seq
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user