Update renamePurchasedServer.rst (#585)

This commit is contained in:
tdnzr 2023-06-09 10:35:55 +02:00 committed by GitHub
parent 4fc5a23bf1
commit 8f312ba616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,12 +8,7 @@ renamePurchasedServer() Netscript Function
:param string newName: New name for the given server.
:returns: ``true`` if the renaming was succesful.
Upgrades the purchased server with the specified hostname to have specified amount of RAM.
The ``hostname`` argument can be any data type, but it will be converted to
a string and have whitespace removed. New RAM amount has to be higher than the current RAM
and a power of 2. Upgrading a server costs the difference of old RAM server cost and new RAM
server cost.
Renames the purchased server with the specified ``hostname`` to have the new name ``newName``.
Example: