nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stdlib: Removed all references to String constructors in nit stdlib and tests.
[nit.git]
/
lib
/
standard
/
environ.nit
diff --git
a/lib/standard/environ.nit
b/lib/standard/environ.nit
index
939c9a8
..
fb83040
100644
(file)
--- a/
lib/standard/environ.nit
+++ b/
lib/standard/environ.nit
@@
-27,7
+27,7
@@
redef class String
# FIXME: There is no proper way to handle NULL C string yet. What a pitty.
var nulstr = once ("".to_cstring.get_environ)
if res != nulstr then
- return new String.from_cstring(res)
+ return res.to_s
else
return ""
end