Browse Source

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

Aleksandr Kuzmenko 5 years ago
parent
commit
fe5c3d1796
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/macro/Context.hx

+ 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);