mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-03 17:48:56 +01:00 
			
		
		
		
	Documentation fix: g_variant_get() returns void
https://bugzilla.gnome.org/show_bug.cgi?id=747107
This commit is contained in:
		
				
					committed by
					
						
						Matthias Clasen
					
				
			
			
				
	
			
			
			
						parent
						
							985ae37d19
						
					
				
				
					commit
					59ec2912e4
				
			@@ -937,7 +937,7 @@ value2 = g_variant_new ("(@(iii)*)", value1, g_variant_new_string ("foo"));
 | 
			
		||||
  GVariant *value;
 | 
			
		||||
 | 
			
		||||
  value = g_variant_new ("&s", "hello world");
 | 
			
		||||
  str = g_variant_get (value, "&s", &str);
 | 
			
		||||
  g_variant_get (value, "&s", &str);
 | 
			
		||||
  g_print ("string is: %s\n", str);
 | 
			
		||||
  /* no need to free str */
 | 
			
		||||
}]]></programlisting></informalexample>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user