From 5c15a265c57b1a7a239ace3f83604d6a0e34010f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 25 Nov 2020 23:14:46 -0500 Subject: [PATCH] Documentation typo fixes --- gsk/gskenums.h | 8 ++++---- gsk/gskpath.c | 4 ++-- gsk/gskpathmeasure.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gsk/gskenums.h b/gsk/gskenums.h index 472ade548b..aabff554f0 100644 --- a/gsk/gskenums.h +++ b/gsk/gskenums.h @@ -220,10 +220,10 @@ typedef enum { /** * GskLineJoin: - * @GSK_LINE_JOIN_MITER: Use a shart angled corner + * @GSK_LINE_JOIN_MITER: Use a sharp, angled corner * @GSK_LINE_JOIN_ROUND: Use a round join, the center of the circle is - * the joing point - * @GSK_LINE_JOIN_BEVEL: use a cut-off join, the join is cut off at half + * the joint point + * @GSK_LINE_JOIN_BEVEL: Use a cut-off join, the join is cut off at half * the line width from the joint point * * Specifies how to render the junction of two lines when stroking. @@ -245,7 +245,7 @@ typedef enum { * @GSK_PATH_CLOSE: A close operation ending the current contour with * a line back to the starting point. Two points describe the start * and end of the line. - * @GSK_PATH_CURVE: A curve-to operation describing a cubic bezier curve + * @GSK_PATH_CURVE: A curve-to operation describing a cubic Bézier curve * with 4 points describing the start point, the two control points * and the end point of the curve. * diff --git a/gsk/gskpath.c b/gsk/gskpath.c index 331a92346f..d2e94dc7a5 100644 --- a/gsk/gskpath.c +++ b/gsk/gskpath.c @@ -1870,7 +1870,7 @@ gsk_path_to_cairo (GskPath *self, * gsk_path_get_n_contours: * @path: a #GskPath * - * Gets the nnumber of contours @path is composed out of. + * Gets the number of contours @path is composed out of. * * Returns: the number of contours in @path **/ @@ -1884,7 +1884,7 @@ gsk_path_get_n_contours (GskPath *path) * gsk_path_is_empty: * @path: a #GskPath * - * Checks if the path is empty, ie contains no lines or curves. + * Checks if the path is empty, i.e. contains no lines or curves. * * Returns: %TRUE if the path is empty **/ diff --git a/gsk/gskpathmeasure.c b/gsk/gskpathmeasure.c index 38cc793faf..e312eb4143 100644 --- a/gsk/gskpathmeasure.c +++ b/gsk/gskpathmeasure.c @@ -201,7 +201,7 @@ gsk_path_measure_clamp_distance (GskPathMeasure *self, * @tangent: (out) (optional) (caller-allocates): The tangent * to the position at @distance * - * Calculates the coordinates and tangent of the point @distance + * Calculates the coordinates and tangent of the point @distance * units into the path. The value will be clamped to the length * of the path. * @@ -322,7 +322,7 @@ gsk_path_measure_get_closest_point (GskPathMeasure *self, * Gets the point on the path that is closest to @point. If no point on * path is closer to @point than @threshold, return %FALSE. * - * Returns: %TRUE if a pointwas found, %FALSE otherwise. + * Returns: %TRUE if a point was found, %FALSE otherwise. **/ gboolean gsk_path_measure_get_closest_point_full (GskPathMeasure *self, @@ -384,7 +384,7 @@ gsk_path_measure_get_closest_point_full (GskPathMeasure *self, * Adds to @builder the segment of @path inbetween @start and @end. * * The distances are given relative to the length of @self's path, - * from 0 for the begginning of the path to + * from 0 for the beginning of the path to * gsk_path_measure_get_length() for the end of the path. The values * will be clamped to that range. *