mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 10:08:56 +01:00 
			
		
		
		
	docs: Fix return value for g_datetime_compare()
Previous code confused dt1 and dt2. The new formulation is stolen from
man strcmp() and g_strcmp0().
(cherry picked from commit 17eea8fa60)
			
			
This commit is contained in:
		
				
					committed by
					
						
						Matthias Clasen
					
				
			
			
				
	
			
			
			
						parent
						
							74efccfc4b
						
					
				
				
					commit
					936c7a895b
				
			@@ -1319,8 +1319,8 @@ g_date_time_add_full (GDateTime *datetime,
 | 
			
		||||
 * #GCompareFunc-compatible comparison for #GDateTime<!-- -->'s. Both
 | 
			
		||||
 * #GDateTime<-- -->'s must be non-%NULL.
 | 
			
		||||
 *
 | 
			
		||||
 * Return value: 0 for equal, less than zero if dt1 is less than dt2, greater
 | 
			
		||||
 *   than zero if dt2 is greator than dt1.
 | 
			
		||||
 * Returnsvalue: -1, 0 or 1 if @dt1 is less than, equal to or greater
 | 
			
		||||
 *   than @dt2.
 | 
			
		||||
 *
 | 
			
		||||
 * Since: 2.26
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user