diff --git a/rugby-score-store.c b/rugby-score-store.c index 8607522bac7dde9eb8b2032ff08f4647b462e1e6..b0d6671915f0036e38e15860b3df75cba89d40d9 100644 --- a/rugby-score-store.c +++ b/rugby-score-store.c @@ -168,8 +168,8 @@ rugby_score_store_init (RugbyScoreStore *store) /** * rugby_score_store_new: * - * Creates a #RugbyScoreStore. This can be used to update a #GtkTreeView - * with possibilities. + * Creates a #RugbyScoreStore. This can be used to update a #GtkTreeView with + * possibilities. * * Returns: a new #RugbyScoreStore */ diff --git a/rugby-scoring.c b/rugby-scoring.c index 3dda681edc298d91c62a2b5e061077112da167d6..014700a448d97cfd4d20327bec024510fb3946c6 100644 --- a/rugby-scoring.c +++ b/rugby-scoring.c @@ -4,10 +4,11 @@ * rugby_scoring_get_possibilities: * @score: the score of a team * - * Gets the possibile ways of scoring @score points, as a %GVariant of the + * Gets the possibile ways of scoring @score points, as a %GVariant of the * type "a(iii)", in the order "tries, utries, pens". * - * Returns: the possibilities, or %NULL in the case there are none + * Returns: (transfer-none): the possibilities, or %NULL in the case there are + * none */ GVariant * rugby_scoring_get_possibilities (gint score) @@ -17,7 +18,7 @@ rugby_scoring_get_possibilities (gint score) gint max_tries, max_utries; gint tries, utries; - g_return_val_if_fail (score > 0, NULL); + g_return_val_if_fail (score >= 0, NULL); g_variant_builder_init (&builder, G_VARIANT_TYPE_ARRAY);