2
0
Эх сурвалжийг харах

changed the doc of Context.getModule() to throw instead of returning null (#9223)

Aleksandr Kuzmenko 5 жил өмнө
parent
commit
fe5c3d1796

+ 1 - 1
std/haxe/macro/Context.hx

@@ -291,7 +291,7 @@ class Context {
 		The resolution follows the usual class path rules where the last
 		declared class path has priority.
 
-		If no module can be found, `null` is returned.
+		If no module can be found, an exception of type `String` is thrown.
 	**/
 	public static function getModule(name:String):Array<Type> {
 		return load("get_module", 1)(name);